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

not support ES module #911

Open
1329576606 opened this issue Jan 17, 2024 · 0 comments
Open

not support ES module #911

1329576606 opened this issue Jan 17, 2024 · 0 comments

Comments

@1329576606
Copy link

1329576606 commented Jan 17, 2024

$ npx dts-gen -m ipfs-core --stdout
Unexpected crash! Please log a bug with the commandline you specified.
/Users/user/.npm/_npx/8ffe955cebeb71d5/node_modules/dts-gen/dist/run.js:154
throw e;
^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /Users/user/eth/orbitdb/orbitdb-demo-ts/node_modules/ipfs-core/package.json
at new NodeError (node:internal/errors:405:5)
at exportsNotFound (node:internal/modules/esm/resolve:362:10)
at packageExportsResolve (node:internal/modules/esm/resolve:642:13)
at resolveExports (node:internal/modules/cjs/loader:567:36)
at Module._findPath (node:internal/modules/cjs/loader:636:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1063:27)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Module.require (node:internal/modules/cjs/loader:1143:19)
at require (node:internal/modules/cjs/helpers:119:18)
at Object. (/Users/user/.npm/_npx/8ffe955cebeb71d5/node_modules/dts-gen/dist/run.js:82:67) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

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