bridge icon indicating copy to clipboard operation
bridge copied to clipboard

ERROR [h3] [unhandled] Cannot read properties of undefined (reading 'indexOf')

Open stephenjason89 opened this issue 1 year ago β€’ 12 comments

Environment



Reproduction

Latest nuxt-bridge-edge 3.0.0-27778503.de9e5c2 causes this error after upgrading not present on previous versions

Describe the bug

image

Additional context

No response

Logs

No response

stephenjason89 avatar Nov 06 '22 20:11 stephenjason89

Hi @stephenjason89 I'm having the exact same error.

Screen Shot 2022-11-11 at 02 28 17

Any alternative solution for this?

damiothar avatar Nov 11 '22 05:11 damiothar

Same error, looking for any solution

image

Kishimotovn avatar Nov 12 '22 11:11 Kishimotovn

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.

matthewfee avatar Nov 13 '22 19:11 matthewfee

Im not using nuxt proxy but just axios proxy πŸ€” however same issue

dcrystalj avatar Nov 14 '22 15:11 dcrystalj

Hi @stephenjason89 I'm having the exact same error.

Screen Shot 2022-11-11 at 02 28 17

Any alternative solution for this?

I don't use the latest build for the meantime ☺️

stephenjason89 avatar Nov 14 '22 18:11 stephenjason89

https://github.com/nuxt/bridge/issues/141#issuecomment-1097972563

tanBeehexa avatar Dec 08 '22 03:12 tanBeehexa

Please help repair it, thank you

604587986 avatar Dec 16 '22 09:12 604587986

https://github.com/nuxt/bridge/issues/141#issuecomment-1097972563

https://github.com/nuxt/bridge/issues/616#issuecomment-1314171413

stephenjason89 avatar Feb 20 '23 17:02 stephenjason89

Are you still encountering this? Would you be able to provide a reproduction if so? πŸ™ https://stackblitz.com/github/nuxt/starter/tree/v2-bridge

wattanx avatar May 19 '23 13:05 wattanx

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.

strokirk avatar May 19 '23 14:05 strokirk

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',
+    }
+  }
})

wattanx avatar May 19 '23 15:05 wattanx

reproduction https://stackblitz.com/edit/github-3fgb91-mo4eua

wattanx avatar May 20 '23 07:05 wattanx