N
Nuxt4mo ago
Thibault

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.
No description
6 Replies
Thibault
ThibaultOP4mo ago
bump, if anyone have an idea 🙂
Cue
Cue4mo ago
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.
Thibault
ThibaultOP4mo ago
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)
Cue
Cue4mo ago
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.
Thibault
ThibaultOP4mo ago
2.1.4 I just tried opening the repro I linked, npm run typecheck and the error is there.
Cue
Cue4mo ago
Meh. Not sure why it worked fine the first time :usefetchwrong: Can confirm > 2.1.0 is pants, at least for me.
Want results from more Discord servers?
Add your server