Replies: 1 comment 1 reply
-
Hi Gvanto ! I can be much more helpful if I was able to re-produce this error, but assuming the codebase is for company eyes only, Ill try my best by looking at the code: So I can see some mistakes already:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Nuxt project info: 9:10:29 AM
As per these docs: https://i18n.nuxtjs.org/docs/v8/guide/lazy-load-translations#basic-usage
I am trying the following,
in my i18n/locales/en.ts file I have:
The useAPIFetch is as follows:
But I keep getting following error:
ERROR Cannot restart nuxt: 'unknown' type in '/app/i18n/locales/en.ts'.
Have tried multiple things (from claude and chatgpt), with no luck (?)
Using "export default defineI18nLocale" (as per the docs) also doesn't work, get different error, same as here: #2145
Any help much appreciated!
Full error:
ERROR Cannot start nuxt: 'unknown' type in '/app/i18n/locales/en.ts'.
rcms-nuxt |
rcms-nuxt | at genImportSpecifier (node_modules/@nuxtjs/i18n/dist/module.mjs:1682:11)
rcms-nuxt | at generateLocaleImports (node_modules/@nuxtjs/i18n/dist/module.mjs:1636:29)
rcms-nuxt | at node_modules/@nuxtjs/i18n/dist/module.mjs:1651:37
rcms-nuxt | at Array.forEach ()
rcms-nuxt | at generateLoaderOptions (node_modules/@nuxtjs/i18n/dist/module.mjs:1651:19)
rcms-nuxt | at genTemplate (node_modules/@nuxtjs/i18n/dist/module.mjs:1890:12)
rcms-nuxt | at setup (node_modules/@nuxtjs/i18n/dist/module.mjs:1933:20)
rcms-nuxt | at async normalizedModule (node_modules/@nuxt/kit/dist/index.mjs:2140:17)
rcms-nuxt | at async installModule (node_modules/@nuxt/kit/dist/index.mjs:2397:95)
rcms-nuxt | at async initNuxt (node_modules/nuxt/dist/index.mjs:4669:5)
Beta Was this translation helpful? Give feedback.
All reactions