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
{{ message }}
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.
> $ dts-gen -m @orbitdb/core ⬡ 18.18.0 [±dev ✓]
Unexpected crash! Please log a bug with the commandline you specified.
/home/michael/.nvm/versions/node/v18.18.0/lib/node_modules/dts-gen/bin/lib/run.js:58
result = guess.generateModuleDeclarationFile(args.module, require(args.module));
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/michael/causing-us/friend-server/node_modules/@orbitdb/core/src/index.js from /home/michael/.nvm/versions/node/v18.18.0/lib/node_modules/dts-gen/bin/lib/run.js not supported.
Instead change the require of index.js in /home/michael/.nvm/versions/node/v18.18.0/lib/node_modules/dts-gen/bin/lib/run.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/home/michael/.nvm/versions/node/v18.18.0/lib/node_modules/dts-gen/bin/lib/run.js:58:67) {
code: 'ERR_REQUIRE_ESM'
}
Can require() be replaced with a dynamic import()?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Can require() be replaced with a dynamic import()?
The text was updated successfully, but these errors were encountered: