nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.74k stars 480 forks source link

@nuxtjs/i18n & vuew-i18n, a 400 error occurred #2028

Closed Boom-BO closed 1 year ago

Boom-BO commented 1 year ago

Environment

systemInfo>>>>>>>>>>>>> System: OS: macOS 10.15.7 CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz Memory: 395.01 MB / 16.00 GB Shell: 5.7.1 - /bin/zsh npmPackages: @nuxtjs/i18n: ^8.0.0-beta.11 => 8.0.0-beta.11 @pinia/nuxt: ^0.4.9 => 0.4.9 @types/node: ^18 => 18.16.0 @types/tailwindcss: ^3.1.0 => 3.1.0 @types/video.js: ^7.3.51 => 7.3.51 @videojs-player/vue: ^1.0.0 => 1.0.0 @vueuse/core: ^10.1.0 => 10.1.0 @vueuse/nuxt: ^10.1.0 => 10.1.0 cross-env: ^7.0.3 => 7.0.3 h3: ^1.6.4 => 1.6.4 nuxt: ^3.4.2 => 3.4.2 nuxt-lodash: ^2.4.1 => 2.4.1 nuxt-swiper: ^1.1.0 => 1.1.0 pinia: ^2.0.35 => 2.0.35 pinia-plugin-persist: ^1.0.0 => 1.0.0 sass: ^1.62.0 => 1.62.0 tailwindcss: ^3.3.1 => 3.3.1 video.js: ^8.0.4 => 8.0.4 vite-plugin-svg-icons: ^2.0.1 => 2.0.1 vue-i18n: ^9.3.0-beta.17 => 9.3.0-beta.17 systemInfo>>>>>>>>>>>>>

"nuxt": "^3.4.2",
"@nuxtjs/i18n": "^8.0.0-beta.11",
"vue-i18n": "^9.3.0-beta.17"

Reproduction

https://github.com/Boom-BO/nuxt3-demo

Describe the bug

nuxt.config.ts:

    // build modules
    modules: [
        '@vueuse/nuxt',
        '@pinia/nuxt',
        '@nuxtjs/i18n',
        'nuxt-swiper',
        'nuxt-lodash',
        'nuxt-lodash'
    ],
    i18n: {
        vueI18n: './i18n/index.ts'
    },

nuxt dev has error =============>

image

Additional context

No response

Logs

No response

Boom-BO commented 1 year ago

The problem disappeared, and the problem of 431 Request Header Fields Too Large appeared #2027

may820806 commented 1 year ago

The problem disappeared, and the problem of 431 Request Header Fields Too Large appeared #2027

same 431 code here

"nuxt": "^3.4.0",
"@nuxtjs/i18n": "^8.0.0-beta.11",

according to #2000 , do we have to set ssr:false for now?