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

打包报错 #29

Open
2663272622 opened this issue Mar 21, 2024 · 0 comments
Open

打包报错 #29

2663272622 opened this issue Mar 21, 2024 · 0 comments

Comments

@2663272622
Copy link

node版本 :18 | 20 均已测试 运行效果相同,请问这个打包问题怎么解决呢?

node:internal/process/esm_loader:40
internalBinding('errors').triggerUncaughtException(
^
Error: tsx must be loaded with --import instead of --loader
The --loader flag was deprecated in Node v20.6.0
at X (file:///E:/project/2024SZLS/node_modules/.pnpm/tsx@3.14.0/node_modules/tsx/dist/esm/index.mjs:1:1920)
at Hooks.addCustomLoader (node:internal/modules/esm/hooks:202:24)
at Hooks.register (node:internal/modules/esm/hooks:168:16)
at async initializeHooks (node:internal/modules/esm/utils:167:5)
at async customizedModuleWorker (node:internal/modules/esm/worker:104:24)

Node.js v18.19.1
 ELIFECYCLE  Command failed with exit code 1.

打包后运行报错如下:
image

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