N
Nuxt7mo ago
TorErik

Absolute path must have the exact same param named "param" as its parent

Just updated to latest Nuxt version and now I'm seeing this error everywhere. Seems to be caused by i18n config, when I disable i18n it works.
i18n: {
langDir: 'lang',
legacy: false,
locales: [
{
code: "nb",
name: "Norsk",
file: "nb.json",
},
{
code: "en",
name: "English",
file: "en.json",
},
],
defaultLocale: "nb",
vueI18n: "./i18n.config.ts",
customRoutes: "config",
pages: {
"[site]/login": {
nb: "/:site/logg-inn",
en: "/:site/login",
},

"[site]/profile": {
nb: "/:site/profil",
en: "/:site/profile",
},

// ADMIN
"[site]/admin/tools": {
nb: "/:site/admin/verktoy",
en: "/:site]/admin/tools",
},

},
},
i18n: {
langDir: 'lang',
legacy: false,
locales: [
{
code: "nb",
name: "Norsk",
file: "nb.json",
},
{
code: "en",
name: "English",
file: "en.json",
},
],
defaultLocale: "nb",
vueI18n: "./i18n.config.ts",
customRoutes: "config",
pages: {
"[site]/login": {
nb: "/:site/logg-inn",
en: "/:site/login",
},

"[site]/profile": {
nb: "/:site/profil",
en: "/:site/profile",
},

// ADMIN
"[site]/admin/tools": {
nb: "/:site/admin/verktoy",
en: "/:site]/admin/tools",
},

},
},
No description
2 Replies
manniL
manniL7mo ago
en: "/:site]/admin/tools", seems like a typo in your config?
TorErik
TorErik7mo ago
Is this correct? Still getting the same error
[site]/admin/tools": {
nb: "/[site]/admin/verktoy",
en: "/[site]/admin/tools",
},
[site]/admin/tools": {
nb: "/[site]/admin/verktoy",
en: "/[site]/admin/tools",
},
Want results from more Discord servers?
Add your server