-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
An error occurred while deploying online [500 This page is temporarily unavailable.] #88
Comments
Hi @lxccc812, are you able to share the live URL or the stack trace thrown by the 500? |
This is the log information recorded by pm2 @harlan-zw [nuxt] [request error] [unhandled] [500] Cannot find module '@resvg/resvg-js-linux-x64-gnu' |
Thanks for the log, sorry for the delay. Not sure what's going on here exactly, you should have the binary installed for you. Can you confirm what package manager you're using and what version (to install the deps). You can see more about the issue here: yisibl/resvg-js#153 |
pnpm 8.7.1 package manager |
Hm maybe you can try manually including the dependency pnpm add @resvg/resvg-js-linux-x64-gnu |
Excessive stack depth comparing types 'NuxtModule' and 'NuxtModule',Type instantiation is excessively deep and possibly infinite. When I tried to use the above method to solve the problem, a new problem arose. When I installed the latest version of nuxt-og-image (2.2.1) and installed it into modules, an error like this was thrown. But I didn't get this error when using 2.0.28. nuxt: 3.7.1 After my testing, I found that the version of nuxt-og-image seems to be somewhat incompatible. Problem solving reference Nuxt#13897 In the case of incompatibility, a stack error will occur, and I'm not sure whether this is a bug. In addition, thank you for your answer. After installing resvg, the problem was solved. However, I think it is a problem that requires me to manually install resvg. Do you have any ideas of merging it into nuxt-og-image? |
Same issue here when deploying for production on a VPS. I use a docker alpine/node image and copy the .output directory then launch node.
I confirmed the package |
There's a couple of things being pointed out in this issue:
Feel free to open a new issue if you're still having issues. |
Describe the bug
I tested it locally without any error messages, but when I deployed it to an online server, a problem occurred when I accessed the page again.
package.json:
Tests I conducted
The online server uses pm2 to manage nuxt projects
ecosystem.config.js
Reproduction
I can't provide a replica because the local tests were all fine
System / Nuxt Info
The text was updated successfully, but these errors were encountered: