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

help #58

Open
kingofandania opened this issue Jul 12, 2024 · 2 comments
Open

help #58

kingofandania opened this issue Jul 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@kingofandania
Copy link

[email protected] dev

node --inspect --loader tsx ./src/index.ts

Debugger listening on ws://127.0.0.1:9229/8403c7b3-f5f0-4afa-9f36-f1d9bca02b29
For help, see: https://nodejs.org/en/docs/inspector

node:internal/process/esm_loader:34
internalBinding('errors').triggerUncaughtException(
^
Error: tsx must be loaded with --import instead of --loader
The --loader flag was deprecated in Node v20.6.0 and v18.19.0
at z (file:///home/runner/aterbot-1/node_modules/.pnpm/[email protected]/node_modules/tsx/dist/esm/index.mjs:1:1773)
at Hooks.addCustomLoader (node:internal/modules/esm/hooks:204:24)
at Hooks.register (node:internal/modules/esm/hooks:170:16)
at async initializeHooks (node:internal/modules/esm/utils:283:5)
at async customizedModuleWorker (node:internal/modules/esm/worker:104:24)

Node.js v20.12.2

@kingofandania kingofandania added the bug Something isn't working label Jul 12, 2024
@WondrousDev-png
Copy link

you have to search for --loader and replace it with --import hope this helped!

@AlejoDNeflo
Copy link

The solution is to change line 10 in package.json to: "dev": "node --inspect --import tsx ./src/index.ts"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants