Closed zAlweNy26 closed 2 months ago
This is a TypeScript issue likely related to the fact that upgrading Nuxt will nuke the .nuxt
folder which contains the runtime types.
If you re-run Nuxt or do nuxi prepare
, it should restore the types.
Also worth noting that you need a tsconfig.json
within your server folder specifically pointing at the Nitro types if you haven't already got one.
Feel free to just ignore these lines also though
Describe the bug
If I upgrade to nuxt v3.11.2, the hook stops working, it doesn't seem to exist anymore. I initialize them in a server plugin like in the docs. The errors are:
[vue-tsc] Argument of type '"site-config:init"' is not assignable to parameter of type 'HookKeys<NitroRuntimeHooks>'.
[vue-tsc] Binding element 'siteConfig' implicitly has an 'any' type.
Reproduction
No response
System / Nuxt Info