atlassian-labs / compiled

A familiar and performant compile time CSS-in-JS library for React.

Home Page:https://compiledcssinjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with package.json

nitedani opened this issue · 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/react@0.16.5