You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry, I can't provide Reproduction because I don't have this error locally with pnpm build && node .output/server/index.mjs, it only occurs in live production
Describe the bug
When I do something like this for a dynamic routing page, I repack and deploy the service with pm2, and I see an error on the homepage, or any other page that uses useFetch (but the f12 console doesn't throw any errors). I've also tried deleting the 'node_modules' file and rebuilding, and I've also removed the '.output' and '.nuxt' and rebuilt.
Additional context
Attached my changes, only this small change, but my website is not working.
Logs
[nuxt] [request error] [unhandled] [500] _fetch is not a function
at ufetch (./.output/server/chunks/nitro/node-server.mjs:2718:14)
at localFetch (./.output/server/chunks/nitro/node-server.mjs:6907:39)
at sendProxy (./.output/server/chunks/nitro/node-server.mjs:1810:47)
at proxyRequest (./.output/server/chunks/nitro/node-server.mjs:1798:10)
at Object.handler (./.output/server/chunks/nitro/node-server.mjs:5142:14)
at Object.handler (./.output/server/chunks/nitro/node-server.mjs:2166:31)
at toNodeHandle (./.output/server/chunks/nitro/node-server.mjs:2355:7)
at ufetch (./.output/server/chunks/nitro/node-server.mjs:2721:17)
at $fetchRaw2 (./.output/server/chunks/nitro/node-server.mjs:2593:26)
at $fetch2 (./.output/server/chunks/nitro/node-server.mjs:2635:15)
[nuxt] [request error] [unhandled] [500] _fetch is not a function
at ufetch (./.output/server/chunks/nitro/node-server.mjs:2718:14)
at localFetch (./.output/server/chunks/nitro/node-server.mjs:6907:39)
at sendProxy (./.output/server/chunks/nitro/node-server.mjs:1810:47)
at proxyRequest (./.output/server/chunks/nitro/node-server.mjs:1798:10)
at Object.handler (./.output/server/chunks/nitro/node-server.mjs:5142:14)
at Object.handler (./.output/server/chunks/nitro/node-server.mjs:2166:31)
at toNodeHandle (./.output/server/chunks/nitro/node-server.mjs:2355:7)
at ufetch (./.output/server/chunks/nitro/node-server.mjs:2721:17)
at $fetchRaw2 (./.output/server/chunks/nitro/node-server.mjs:2593:26)
at $fetchRaw2 (./.output/server/chunks/nitro/node-server.mjs:2602:14)
The text was updated successfully, but these errors were encountered:
Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.
What will happen?
If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect.
If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.
How can I create a reproduction?
We have a couple of templates for starting with a minimal reproduction:
Environment
Reproduction
Sorry, I can't provide Reproduction because I don't have this error locally with
pnpm build && node .output/server/index.mjs
, it only occurs in live productionDescribe the bug
When I do something like this for a dynamic routing page, I repack and deploy the service with pm2, and I see an error on the homepage, or any other page that uses useFetch (but the f12 console doesn't throw any errors). I've also tried deleting the 'node_modules' file and rebuilding, and I've also removed the '.output' and '.nuxt' and rebuilt.
Additional context
Attached my changes, only this small change, but my website is not working.
![image](https://private-user-images.githubusercontent.com/110974969/335601626-33ab91fc-1329-490c-8e40-bad1d1c567aa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3OTEyNTIsIm5iZiI6MTcyNDc5MDk1MiwicGF0aCI6Ii8xMTA5NzQ5NjkvMzM1NjAxNjI2LTMzYWI5MWZjLTEzMjktNDkwYy04ZTQwLWJhZDFkMWM1NjdhYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODI3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgyN1QyMDM1NTJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZjRiNDhkZDQ3Nzg3MzI1NjBhZGU0ODZlOWNkYTY4YTFkMGJhZDM2ZTRlMjg1ZTczZTViYjg4NTY1NTMzMGQzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.WJ090lkOSKhashj5jwcMYLZvkYEIeVz-_Px2QZUtAgs)
Logs
The text was updated successfully, but these errors were encountered: