You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug with esm if we try to import reatom in esm-based package
we got an error:
$ node ./dist/hello.js
file:///check-ts-issue/dist/hello.js:1
import { atom, createCtx } from '@reatom/framework';
^^^^
SyntaxError: Named export 'atom' not found. The requested module '@reatom/framework' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@reatom/framework';
const { atom, createCtx } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)
Node.js v18.16.1
error Command failed with exit code 1.
What happened?
Bug with esm if we try to import reatom in esm-based package
we got an error:
Here's the repo with reproduce:
https://github.com/Aetet/reatom-esm-reproduce
Part
Package @reatom/core
Version
No response
What browsers are you seeing the problem on?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: