N
Nuxt4mo ago
bnason

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
Edik
Edik4mo ago
try to do "nuxt prepare"
bnason
bnasonOP4mo ago
yup, ive tried that too.
Cue
Cue4mo ago
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.
bnason
bnasonOP4mo ago
I ended up doing that, and cleaning up a bunch of stuff and it finally went away. No idea exactly what did it though.
Want results from more Discord servers?
Add your server