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

npm run build 失败 #42

Open
JoeSmiles opened this issue Mar 27, 2023 · 5 comments
Open

npm run build 失败 #42

JoeSmiles opened this issue Mar 27, 2023 · 5 comments

Comments

@JoeSmiles
Copy link

Package subpath './package.json' is not defined by "exports" in D:\myproject\deploy\notify-server\node_modules\rollup-plugin-typescript2\node_modules\tslib\package.json

打包失败

@JS-banana
Copy link
Owner

Package subpath './package.json' is not defined by "exports" in D:\myproject\deploy\notify-server\node_modules\rollup-plugin-typescript2\node_modules\tslib\package.json

打包失败

用 pnpm 试试

  1. 先安装pnpm:npm install -g pnpm
  2. 再安装依赖:pnpm i

@JoeSmiles
Copy link
Author

感谢回复,问题已解决;
是因为 tslib 不支持高版本的 node 之前是 18. 目前换成 v16.20.0 可以正常打包

@TeQuieroS
Copy link

腾讯云的函数部署不了

@JS-banana JS-banana reopened this Apr 12, 2023
@JS-banana
Copy link
Owner

感谢回复,问题已解决; 是因为 tslib 不支持高版本的 node 之前是 18. 目前换成 v16.20.0 可以正常打包

OK,那有必要说明一下了😂,node版本更新挺快

推荐使用14.x - 16.x 的版本

@JS-banana JS-banana pinned this issue Apr 12, 2023
@JingQ-zhang
Copy link

感谢回复,问题已解决; 是因为 tslib 不支持高版本的 node 之前是 18. 目前换成 v16.20.0 可以正常打包

OK,那有必要说明一下了😂,node版本更新挺快

推荐使用14.x - 16.x 的版本

不搞个docker版本吗~~

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

4 participants