NuxtN
Nuxt16mo 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.
image.png
Was this page helpful?