I'm currently trying to update from nuxt 2 to nuxt-bridge following this guide: https://v3.nuxtjs.org/bridge/overview
When running nuxi dev
I receive this error message:
FATAL [bridge] Bridge must be enabled by using defineNuxtConfig to wrap your Nuxt configuration.
at setup (/XXX/node_modules/@nuxt/bridge/dist/chunks/module.mjs:1307:13)
at ModuleContainer.normalizedModule (/XXX/node_modules/@nuxt/kit/dist/index.mjs:582:29)
ERROR Cannot start nuxt: [bridge] Bridge must be enabled by using defineNuxtConfig to wrap your Nuxt configuration
.
at setup (/XXX/node_modules/@nuxt/bridge/dist/chunks/module.mjs:1307:13)
at ModuleContainer.normalizedModule (/XXX/node_modules/@nuxt/kit/dist/index.mjs:582:29)
However, as I consequently followed the migration guide, my nuxt.config.ts
starts like this:
import { defineNuxtConfig } from '@nuxt/bridge'
export default defineNuxtConfig({
...
So, I consider that done. Not sure, what the error is trying to tell me. Any suggestions?
Sample repo: https://github.com/some-user123/nuxt-bridge
It's a bug (https://github.com/nuxt/bridge/issues/411), as a workaround bridge: {}
can be used.