Closed kevinmarrec closed 6 years ago
This issue as been imported as question since it does not respect nuxt-i18n issue template. Only bug reports and feature requests stays open to reduce maintainers workload. If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically. Your question is available at https://cmty.app/nuxt/nuxt-i18n/issues/c136.
I just ran into this as well @kevinmarrec. Looks like it's because I have been using Typescript with the @Component
decorator.
So parsePages: false
in nuxt.config.js
allows it to not parse the typescript pages. I'll have to test to see how that impacts the build though..
@michaelwills Yes I'm using @Component
decorators. Indeed, I went with parsePages: false
to make it working. But yeah I don't know either if it impacts something.
I had the solution few days ago but as the Bot automatically closed my issue, I forgot to give my feedback, sorry 😄.
Maybe a "Known issues" section in the NuxtI18n documentation could be great, to directly refer this kind of problem (which may be resolved later). I also needed to disable the seo
option to not have problem with third parties (see https://github.com/nuxt-community/nuxt-i18n/issues/100)
That gets it building but accessing data seems to be different now…
Still dealing with Property "$i18n" does not exist on type "Component name"
.
@kevinmarrec I replaced my custom modules/typescript.ts
with the nuxt-ts
package. A couple of other changes are
langFile
to file
otherwise it wouldn't find the lang fileloadLanguagesAsync
to lazy
@michaelwills I never had this Property "$i18n" does not exist on type "Component name"
error, and I already have file
and lazy
options. I don't know if the properties you are talking about were existing before but if it's the case I think you had some old Nuxt I18n version, your last message looks like migration guidelines.
Still dealing with
Property "$i18n" does not exist on type "Component name"
.
Is there any solution to this issue?
@andrejs-uibo Please create a new issue, this one is closed & almost 1 year old, thanks.
I'm not being able to make Nuxt-i18n working with a fresh Nuxt 2.0 project. I got this error :
My
nuxt.config.js
Did something break since Nuxt 2.0 ?