bridge
bridge copied to clipboard
ERROR [h3] [unhandled] Cannot read properties of undefined (reading 'indexOf')
Environment
- Operating System:
Darwin
- Node Version:
v18.7.0
- Nuxt Version:
2.16.0-27720022.54e852f
- Nitro Version:
0.6.1
- Package Manager:
[email protected]
- Builder:
webpack
- User Config:
buildDir
,srcDir
,bridge
,components
,ssr
,dev
,alias
,image
,generate
,content
,head
,typescript
,publicRuntimeConfig
,privateRuntimeConfig
,css
,loading
,loadingIndicator
,plugins
,buildModules
,modules
,proxy
,vuetify
,build
,serverHandlers
,devServerHandlers
- Runtime Modules:
@nuxtjs/[email protected]
,@nuxt/[email protected]
,@nuxtjs/[email protected]
,[email protected]
- Build Modules:
()
,[email protected]
,[email protected]
,@pinia/[email protected]
,@vueuse/[email protected]
,~/modules/apolloSSR
,@nuxt/[email protected]
Reproduction
Latest nuxt-bridge-edge 3.0.0-27778503.de9e5c2 causes this error after upgrading not present on previous versions
Describe the bug

Additional context
No response
Logs
No response
Hi @stephenjason89 I'm having the exact same error.
Any alternative solution for this?
Same error, looking for any solution
also having this same error and would appreciate any solution. Note that our module is using @nuxt/proxy which appears to be the source of the error. I have tried using @nuxt-alt/proxy as an alternative, but still seeing the same error.
Im not using nuxt proxy but just axios proxy π€ however same issue
Hi @stephenjason89 I'm having the exact same error.
Any alternative solution for this?
I don't use the latest build for the meantime βΊοΈ
https://github.com/nuxt/bridge/issues/141#issuecomment-1097972563
Please help repair it, thank you
https://github.com/nuxt/bridge/issues/141#issuecomment-1097972563
https://github.com/nuxt/bridge/issues/616#issuecomment-1314171413
Are you still encountering this? Would you be able to provide a reproduction if so? π https://stackblitz.com/github/nuxt/starter/tree/v2-bridge
I've encountered it recently while trying to convert a fairly big project from Vue 2 to Vue 3. Couldn't figure out how to solve or what "[h3]
" stands for.
Are you using @nuxtjs/proxy
, nuxi
, nitro: true
?
If so, you need to use devProxy with nitro
.
https://stackblitz.com/edit/github-3fgb91-kjeb1y
export default defineNuxtConfig({
- modules: ['@nuxtjs/proxy']
- proxy: {
- '/api': 'http://example.com',
- }
+ nitro: {
+ devProxy: {
+ '/api': 'http://example.com',
+ }
+ }
})
reproduction https://stackblitz.com/edit/github-3fgb91-mo4eua