Closed
Description
When I compile rescript into JavaScript and have Node.js run it, I found that the @rescript/core
was not set as a esmodule. When I manually changed the package.json
in the core
to type: module
, everything worked properly.
(node:46659) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
/Users/projects/rescript-message/node_modules/.pnpm/@rescript+core@1.3.0_rescript@11.1.0/node_modules/@rescript/core/src/Core__List.res.js:3
import * as Belt_Array from "rescript/lib/es6/belt_Array.js";
Metadata
Metadata
Assignees
Labels
No labels