Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. #60

Closed
jaywcjlove opened this issue Jan 2, 2022 · 0 comments

Comments

@jaywcjlove
Copy link
Owner

> compile-less -d src -o esm

(node:2989) 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)
/home/runner/work/react-heat-map/react-heat-map/node_modules/compile-less-cli/lib/index.js:38
import minimist from 'minimist';
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at wrapSafe (internal/modules/cjs/loader.js:1001:16)
    at Module._compile (internal/modules/cjs/loader.js:1049:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47
jaywcjlove added a commit that referenced this issue Jan 2, 2022
jaywcjlove added a commit to uiwjs/react-heat-map that referenced this issue Jan 2, 2022
Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
jaywcjlove/compile-less#60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant