Quantcast
Channel: ReScript Forum - Latest posts
Browsing all 2592 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Why do I get "module or file RescriptCore can't be found" error on VSCode?

tsnobip: Did you try restarting the vscode extension? Not restarting the extension specifically, but I’ve tried restarting vscode; it happens every time I open vscode. Strangely, it doesn’t happen in...

View Article


Why do I get "module or file RescriptCore can't be found" error on VSCode?

What if you try rescript@12.0.0-alpha.8?

View Article


Creating Optional Fields out of strict record

The type system in ReScript requires you to think about things up front since you can’t modify the types later. If you have a type with an optional field of name and a type where name is required,...

View Article

Why do I get "module or file RescriptCore can't be found" error on VSCode?

Any chance you could create a reproduction repo, noting which files it happens in vs where it doesn’t happen?

View Article

Rescript frustration

There are definitely things that can be improved in ReScript and we’re actually working hard to improve them (and we welcome contributions too by the way), one of them is building better primitives to...

View Article


Rescript frustration

I agree that a recursive function feels more at home than a loop.

View Article

Importing from rescript standard lib using Deno

I’m working on a project using Deno, ReScript 12, Fresh, and i’m trying to add in rescript-edgedb. ReScript is all happy and compiles just fine, it’s during runtime I get an error. Here’s a snippet of...

View Article

Importing from rescript standard lib using Deno

your repro looks weird because you’re saying you use ReScript v12 but the error points at rescript@11.1.4 and the runtime files changed a lot since then. Try to make sure you do use rescript v12...

View Article


Why do I get "module or file RescriptCore can't be found" error on VSCode?

@zth I too have noticed a lot of error messages in editor, usually something random at the top of the file. Since about a weekish ago. I thought it was something to do with rewatch and using resi...

View Article


Why do I get "module or file RescriptCore can't be found" error on VSCode?

@zth , I don’t have the code with me, but I was following the snake game with Rescript tutorial on youtube. This is the corresponding repository from the creator: GitHub - Exegetech/snake-rescript:...

View Article

Importing from rescript standard lib using Deno

I’m on "version": "12.0.0-alpha.7". I’m configured to use rescript@next. rescript-edgedb is using "rescript": "^11.1.0". Deno is using a nested version of rescript@11.1.4 and a version of...

View Article

Importing from rescript standard lib using Deno

If I change the source code to import * as Primitive_option from "rescript/std/lib/es6/Primitive_option.js"; I get a different error. error: Could not resolve...

View Article

Importing from rescript standard lib using Deno

I can get that basic example to work if I update the package.json for the rescript/package.json and add this: "exports": { "./std/lib/es6/*": "./lib/es6/*", // add this "./lib/es6/*": "./lib/es6/*",...

View Article


Importing from rescript standard lib using Deno

I figured it out! In rescript.json you have to set an extenal stdlib. "external-stdlib" : "@rescript/std" And in deno.json: "imports": { "rescript": "npm:rescript@12.0.0-alpha.7", "@rescript/std":...

View Article

Importing from rescript standard lib using Deno

I don’t understand, which of your dependencies is supposed to use @rescript/std?

View Article


Why do I get "module or file RescriptCore can't be found" error on VSCode?

Thanks! Will look into it soon.

View Article

Importing from rescript standard lib using Deno

Setting @rescript/std allows me to force the Deno runtime to use the same version. By default it imports from rescript, which resolves to a different version for the main app, v12, and...

View Article


Importing from rescript standard lib using Deno

This would just break if any line of code uses an API that got changed between v11 and v12. Can’t you force the resolution of rescript instead? At least it would break on compile time and not on...

View Article

Importing from rescript standard lib using Deno

Maybe. I’m still learning Deno, but I haven’t found a way to tell Deno to override dependencies. It’s somewhat baked into the module resolution for files to be more portable, to the point where you...

View Article

Image may be NSFW.
Clik here to view.

Rescript frustration

The feature I wish we had most is an operator to short circuit Error and None variants on Result and Option

View Article
Browsing all 2592 articles
Browse latest View live