Nuxt 3.12.1 Update: Prerender Error with app.use Function
Hello everyone! I've recently encountered an issue after updating to Nuxt version 3.12.1. My deployment to Cloudflare Pages fails during the prerendering process with a
Locally when entering the dev mode, the logs have shown different errors on different starts. At first it was the i18n module which seems to create the problem but now its Supabase and due to my usage of Cloudflare Pages and my tests I am really sure that it is because of the upgrade. When I downgrade back everything seems to work fine. Has something changed for configuring the Nuxt Configuration file (
SyntaxError: Need to install with \app.use functionerror. This problem did not occur in the previous version (3.11.2), and it only affects the Pull Request Preview Deployment. Here's mynpx nuxi info for reference:- Operating System: Windows_NT
- Node Version: v20.8.1
- Nuxt Version: 3.12.1
- CLI Version: 3.12.0
- Nitro Version: 2.9.6
- Package Manager: pnpm@9.3.0
- User Config: preset, experimental, devtools, modules, serverMiddleware, supabase, i18n, cloudflareAnalytics, turnstile, css, postcss, app, runtimeConfig, routeRules, image, security, content, typescript
- Runtime Modules: @nuxt/image@1.7.0, @nuxt/devtools@1.3.3, @nuxt/content@2.12.1, @nuxtjs/i18n@8.3.1, @nuxtjs/turnstile@0.8.0, @nuxtjs/tailwindcss@6.12.0, @nuxtjs/supabase@1.2.2, @nuxthq/studio@1.1.2, nuxt-security@1.4.3, nuxt-headlessui@1.2.0, nuxt-cloudflare-analytics@1.0.8, nuxt-resend@0.0.2
Locally when entering the dev mode, the logs have shown different errors on different starts. At first it was the i18n module which seems to create the problem but now its Supabase and due to my usage of Cloudflare Pages and my tests I am really sure that it is because of the upgrade. When I downgrade back everything seems to work fine. Has something changed for configuring the Nuxt Configuration file (
nuxt.config.ts)?