Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Importing from rescript standard lib using Deno

$
0
0

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 rescript@12.0.0-alpha-7 and it’s pulling in 11.1.4 when it’s importing from the compiled JS from rescript-edgedb.

I think I need to adjust something in the way Deno is configured.

Even with a simple example like this:

// testing.js
import * as Primitive_option from "npm:rescript/std/lib/es6/Primitive_option.js";

console.log(Primitive_option);

It is still trying to import from version 11.

I do have this set in my deno.json file:

"imports": {
    "rescript": "npm:rescript@12.0.0-alpha.7",
}

Viewing all articles
Browse latest Browse all 2592

Trending Articles