Closed lablnet closed 2 months ago
All the NuxtHub templates are using pnpm actually. What is the project you are trying to deploy?
All the NuxtHub templates are using pnpm actually. What is the project you are trying to deploy?
Simple nuxtjs app with one hello world server and coming soon page for fronted!
This is the repo you can easily reproduce the issue https://github.com/MacroHub-LCC/macrohub.net
Why do you have 2 times the modules
key?
https://github.com/MacroHub-LCC/macrohub.net/blob/6847db9a63f46ef81a972dc299089b8c680f2989/nuxt.config.ts#L18-L27
It was typo, I removed it but still same error now even you can see https://macrohub.net/
Alright, you need to add a .npmrc
when dealing with pnpm on your project (will check with the Nuxt team as it seems to be a regression somehow)
# .npmrc
shamefully-hoist=true
Then re-install the dependencies and deploy, it will work :)
Describe the bug The deployment through an error 500 when we use pnpm as package manager
Steps to reproduce Steps to reproduce the behavior:
npx nuxthub deploy
to deploy11:24:23.629 GET 500 / [nuxt] [request error] [unhandled] [500],global is not defined at chunks/build/server.mjs:1:162051 [nuxt] [request error] [unhandled] [500],Cannot access 'default' before initialization at chunks/routes/renderer.mjs:1:114119
at async chunks/routes/renderer.mjs:1:114072
at async chunks/routes/renderer.mjs:1:116193
at async Object.handler (chunks/routes/renderer.mjs:1:115231)
at async Object.handler (chunks/runtime.mjs:1:74653)
at async chunks/runtime.mjs:1:77585
at async chunks/runtime.mjs:1:110187
at async errorHandler (chunks/runtime.mjs:1:105360)
at async chunks/runtime.mjs:1:77737
at async chunks/runtime.mjs:1:110187