Nuxt postinstall (nuxt prepare cmd) / nuxt build hangs forever

On an app I have in production, I suddently started being completely unable to install properly packages for my app / run build. The issue seem to be at the "nuxt prepare" step, because the issue happen when I run "nuxi prepare" as standalone.
cyprienthao@Ordinateur-portable-de-Cyprien exassess-app-rfc % bunx nuxi prepare
Types generated in .nuxt
cyprienthao@Ordinateur-portable-de-Cyprien exassess-app-rfc % bunx nuxi prepare
Types generated in .nuxt
When I run the command, The type generation seem to be happening as it should, but then the command hangs forever, I've tried just let it run until it throws something, but it never happens. I thought this could have been related to the modules I use, so I just disabled all modules my app uses, even tried commenting the whole nuxt.config.ts content, but the exact same issue keeps happening. I've also tried multiple package managers, bun, pnpm, yarn, npm, issue always reproduces. Has someone already experienced this kind of issue, and know where I should be looking at. I've been fighting with this issue for quite a while, and I really didn't progress much. Also, do someone know if there's a way to have "verbose" logs of the steps the "nuxi prepare" command is running, to get maybe an insight on what's blocking here ? Didn't find any option to achieve this yet.
No description
4 Replies
ChronicStone
ChronicStoneOP11mo ago
I tried to run this :
bunx nuxi prepare --logLevel verbose
bunx nuxi prepare --logLevel verbose
But I didn't get any extra log
ChronicStone
ChronicStoneOP11mo ago
Only similar issue reference I've find so far is this : https://github.com/nuxt/cli/issues/169 Which also points me to a module being the problem
GitHub
nuxi prepare or build hangs · Issue #169 · nuxt/cli
Environment Operating System: Darwin Node Version: v20.5.1 Nuxt Version: 3.7.0 CLI Version: 3.7.0 Nitro Version: 2.6.1 Package Manager: [email protected] Builder: - User Config: experimental, css, ssr, nit...
ChronicStone
ChronicStoneOP11mo ago
My project infos
------------------------------
- Operating System: Darwin
- Node Version: v18.16.0
- Nuxt Version: 3.9.3
- CLI Version: 3.10.1
- Nitro Version: 2.8.1
- Package Manager: [email protected]
- Builder: -
- User Config: ssr, devtools, experimental, alias, app, css, modules, imports, components, i18n, vue, macros, vite, build, typescript, nitro, runtimeConfig
- Runtime Modules: @unocss/[email protected], @pinia/[email protected], @bg-dev/[email protected], @vueuse/[email protected], @vue-macros/[email protected], @nuxtjs/[email protected], [email protected], [email protected], @nuxtjs/[email protected], @formkit/auto-animate/[email protected], normalizedModule()
- Build Modules: -
------------------------------
------------------------------
- Operating System: Darwin
- Node Version: v18.16.0
- Nuxt Version: 3.9.3
- CLI Version: 3.10.1
- Nitro Version: 2.8.1
- Package Manager: [email protected]
- Builder: -
- User Config: ssr, devtools, experimental, alias, app, css, modules, imports, components, i18n, vue, macros, vite, build, typescript, nitro, runtimeConfig
- Runtime Modules: @unocss/[email protected], @pinia/[email protected], @bg-dev/[email protected], @vueuse/[email protected], @vue-macros/[email protected], @nuxtjs/[email protected], [email protected], [email protected], @nuxtjs/[email protected], @formkit/auto-animate/[email protected], normalizedModule()
- Build Modules: -
------------------------------
Bobakanoosh
Bobakanoosh10mo ago
@ChronicStone hey I know this is a bit old, but if you disable @unocss/nuxt module, does it fix your builds?
Want results from more Discord servers?
Add your server