esm.sh icon indicating copy to clipboard operation
esm.sh copied to clipboard

Failed to import - ts-node

Open renhiyama opened this issue 1 year ago • 0 comments

Failing module

  • GitHub: https://github.com/my/repo
  • npm: https://npmjs.com/package/my_package

Error message

After running reejs x npm:ts-node

[DOWNLOAD] https://esm.sh/ts-node/dist/bin.js
[WARNING] URLImportInstaller.js: Please use specific version for https://esm.sh/ts-node/dist/bin.js to access https://esm.sh/[email protected]/dist/bin.js faster without pinging for latest version
[INFO] Saving important data...
[TIP] If the error in your code is in any of the following extensions (.ts, .tsx, .jsx), kindly not focus on the line number as the line numbers depict the compiled code and not the original one. Add `DEBUG=true` to your environment variables to see the original code.
TypeError: Cannot read properties of undefined (reading 'Symbol(source-map-support/sharedData)')
    at le (https://esm.sh/v126/@cspotcode/[email protected]/node/source-map-support.mjs:2:1414)
    at https://esm.sh/v126/@cspotcode/[email protected]/node/source-map-support.mjs:2:1661
    at https://esm.sh/v126/@cspotcode/[email protected]/node/source-map-support.mjs:2:657
    at https://esm.sh/v126/@cspotcode/[email protected]/node/source-map-support.mjs:5:3628
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

Additional info

  • esm.sh version: v126
  • Paste the reejs doctor report:
[reejs] Doctor
[RUNTIME] node
[VERSION] 0.9.22
[NODE_VER] 18.16.0
[REEJS_CACHE] 0 files
[REEJS_DIR] /home/[REDACTED]/coding/.reejs
[REEJS_DIR_EXISTS] false
[PWD] /home/[REDACTED]/coding

renhiyama avatar Jun 16 '23 06:06 renhiyama