compiled icon indicating copy to clipboard operation
compiled copied to clipboard

Issue with package.json

Open nitedani opened this issue 2 years ago • 0 comments

Describe the bug A clear and concise description of what the bug is. Node fails to import @compiled/react/runtime

(node:19347) 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)
export { CC, CS, ax, ac, clearAcCache, ix } from './runtime/index';
^^^^^^

SyntaxError: Unexpected token 'export'
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1176:20)
    at Module._compile (node:internal/modules/cjs/loader:1218:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32)
    at Function.Module._load (node:internal/modules/cjs/loader:958:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

Related: https://publint.dev/@compiled/[email protected]

nitedani avatar Dec 15 '23 01:12 nitedani