Cannot find name 'defineNuxtConfig'
I have no why this all of a sudden started happening. I'm getting this error in my nuxt.config.ts
Cannot find name 'defineNuxtConfig'. Did you mean 'defineNitroConfig'?
I'm running the dev server. I've tried deleting the .nuxt and then running dev server again. I've restarted vscode as well as restarted the ts server.4 Replies
try to do "nuxt prepare"
yup, ive tried that too.
Can you delete the line entirely, and write it out manually? This seems like an edge case, where it works for 99.99% of people but there's always something else at play.
I ended up doing that, and cleaning up a bunch of stuff and it finally went away. No idea exactly what did it though.