deep-foundation / deeplinks

https://discord.gg/deep-foundation
The Unlicense
14 stars 9 forks source link

Fix requires #339

Closed suenot closed 5 months ago

suenot commented 5 months ago

When run deeplinks:

Error [ERR_REQUIRE_ESM]: require() of ES Module /root/.nvm/versions/node/v18.20.3/lib/node_modules/@deep-foundation/deeplinks/node_modules/fix-path/index.js from /root/.nvm/versions/node/v18.20.3/lib/node_modules/@deep-foundation/deeplinks/imports/engine-server.cjs not supported.
Instead change the require of index.js in /root/.nvm/versions/node/v18.20.3/lib/node_modules/@deep-foundation/deeplinks/imports/engine-server.cjs to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/root/.nvm/versions/node/v18.20.3/lib/node_modules/@deep-foundation/deeplinks/imports/engine-server.cjs:8:17)
    at Object.<anonymous> (/root/.nvm/versions/node/v18.20.3/lib/node_modules/@deep-foundation/deeplinks/call.cjs:3:18) {
  code: 'ERR_REQUIRE_ESM'
}

Node.js v18.20.3