N
Nuxt2y ago
Mole

How to debug missing `vue/server-renderer` in bundle?

I am seeing the below error when requesting any path on production (debian):
[nuxt] [request error] [unhandled] [500] Cannot find module '/<redacted>/.output/server/node_modules/vue/server-renderer/index.mjs' imported from /<redacted>/.output/server/chunks/handlers/renderer.mjs
[nuxt] [request error] [unhandled] [500] Cannot find module '/<redacted>/.output/server/node_modules/vue/server-renderer/index.mjs' imported from /<redacted>/.output/server/chunks/handlers/renderer.mjs
The vue/server-renderer is not being properly included in bundled output. This reproduces steadily on the one server and I am yet to reproduce anywhere else. Major dependency that may cause the issue is nuxt-seo-kit. I am not asking to debug the issue for me, rather for an idea why server-renderer may be missing. Question is: How to debug missing vue/server-renderer in bundle?
3 Replies
Mole
MoleOP2y ago
rm -rf node_modules, rm -rf $(pnpm store path) do not help, guiding me to believe it is not a problem with corrupted dependencies.
Mads
Mads2y ago
Did you find a solution? It is probably caused by nuxt-seo-kit as it is a layer and there seems to be issues with layers: https://github.com/nuxt/nuxt/issues/22234
Mole
MoleOP2y ago
I found it is probably related to nuxt-seo-kit, but have not figured much else nuxt-seo-kit uses old versions of the seo modules, it might be fixed already We have not faced the bug you describe above. I think it may be related to the yesterday's 3.6.4 and 3.6.5 updates. Maybe not, good catch! :D
Want results from more Discord servers?
Add your server