useRuntimeConfig is returning a type unknown
Since I've upgraded to Nuxt 3.13, useRuntimeConfig is returning a type
unknown
.
I've isolated that the issue comes from the combination of having both nuxt-security
and @nuxtjs/i18n
installed. If either of them are enabled => no issue, if both are => issue.
I'm not really sure how to start debugging that (looking at .nuxt/types/schema.d.ts
, I don't see anything blatant that would explain the issue), if anyone has any idea.
I've made a simple reproduction: https://stackblitz.com/edit/github-unypdj?file=README.md
If you disable either of the modules in the nuxt config -> typechecking issue disappears.6 Replies
bump, if anyone have an idea 🙂
For i18n, ensure you’ve upgraded to the latest patch release 8.5.1 which resolves this issue. I cannot say the same for nuxt-security, you may have to raise an issue in their repo.
the fix is for plugin types, here my issue is with runtime config
while probably related, the current fix does not seem to change anything (the nuxt hotfix that just released also didn't change anything)
Can't reproduce with your repro. What version of vue-tsc do you have installed? Can't reproduce on
< 2.1.0
and >= 2.1.4
, but I can on versions in-between.2.1.4
I just tried opening the repro I linked,
npm run typecheck
and the error is there.Meh. Not sure why it worked fine the first time :usefetchwrong:
Can confirm
> 2.1.0
is pants, at least for me.