Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument of type '"share-p-slug"' is not assignable to parameter of type 'keyof RouteNamedMap | undefined' #3230

Open
lxccc812 opened this issue Nov 14, 2024 · 0 comments

Comments

@lxccc812
Copy link

Environment


  • Operating System: Windows_NT
  • Node Version: v20.17.0
  • Nuxt Version: 3.14.159
  • CLI Version: 3.15.0
  • Nitro Version: 2.10.4
  • Package Manager: pnpm@9.11.0
  • Builder: -
  • User Config: default
  • Runtime Modules: @nuxtjs/device@3.2.4, @nuxtjs/i18n@9.0.0, @nuxtjs/sitemap@5.3.5, @unocss/nuxt@0.57.7, @vite-pwa/nuxt@0.6.0, @vueuse/nuxt@10.11.1, @zadigetvoltaire/nuxt-gtm@0.0.13, nuxt-lodash@2.5.3, nuxt-swiper@1.2.2
  • Build Modules: -

Reproduction

None

Describe the bug

What happened is, after I used nuxt/i18n, my useRoute was not resolving my routes correctly.
Image

And prompted me to use ____en.
Image

Additional context

i18n config

i18n: {
        baseUrl: process.env.NUXT_PUBLIC_BASE_URL,
        locales: [
            {
                code: 'en',
                language: 'en-US',
                file: 'en-US.ts',
                domain: process.env.NUXT_PUBLIC_BASE_URL,
            },
            {
                code: 'ja',
                language: 'ja-JP',
                file: 'ja-JP.ts',
                domain: 'https://jp.example.com',
            },
        ],
        defaultLocale: 'en',
        lazy: true,
        differentDomains: true,
    },

Logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant