defineNuxtConfig is not defined
Hello, This Morning suddenly i fell into one wierd problem with defineNuxtConfig which i really appreciate your help cause i'm really confused.
I have this error: "defineNuxtConfig is not defined " while i wanted to run npm i or npm run dev and nothing has changed in the project from the last time that it has worked well!
One other weird issue is that when i'm trying to install a new nuxt3 peoject i'll face with same Error!!
Could anyone help me in that regard?
( I already read the same exist solution in the channel and trying to re- run everything, deleting the node_modules, importing defineNuxtConfig, .. also "npm list nuxt" will shoe only [email protected] )
Thank you
8 Replies
probably an IDE-only issue as the app is running, right?
no , unfortunately app also crashed
with that error?
yes
🥲 ok i solved it,
whats the code of your nuxt config at the moment?
remove the (existing?) import I guess?
the issue was that in one of the parent directory, one node_module has been installed ! and that crashed the project which is in child folders as well 🙃
ohh, good one
yeah
thank you @manniL / TheAlexLichter !