N
Nuxt3mo ago
Mahsa

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
manniL
manniL3mo ago
probably an IDE-only issue as the app is running, right?
Mahsa
MahsaOP3mo ago
no , unfortunately app also crashed
manniL
manniL3mo ago
with that error?
Mahsa
MahsaOP3mo ago
yes 🥲 ok i solved it,
manniL
manniL3mo ago
whats the code of your nuxt config at the moment? remove the (existing?) import I guess?
Mahsa
MahsaOP3mo ago
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 🙃
manniL
manniL3mo ago
ohh, good one yeah
Mahsa
MahsaOP3mo ago
thank you @manniL / TheAlexLichter !
Want results from more Discord servers?
Add your server