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

关于部署next项目报错问题 #44

Open
Yangjinsen8-1 opened this issue Nov 6, 2024 · 0 comments
Open

关于部署next项目报错问题 #44

Yangjinsen8-1 opened this issue Nov 6, 2024 · 0 comments

Comments

@Yangjinsen8-1
Copy link

近日在部署next项目时,通过 output:"standalone"配置生成的部署文件包。在我将其放于我的服务器上,通过在standalone文件夹下执行node server.js命令时,出现报错信息'Cannot find module 'styled-jsx/package.json',文件路径显示为'standalone/node_modules/next/dist/server/require-hook.js'。
请问我该如何解决此问题呢?或者如何更方便快捷部署next项目(生成较小的部署文件)

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