You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
When I migrate my app from nuxt 2 to Nuxt 3, it throws multi errors. I actually don't have any idea how to fix this. There's also no suggest on the internet, Nuxt docs page as well.
I hope to receive any advice.
This is my config folder. In nuxt 2 we don't need to create file default.json. But with Nuxt 3, without default.json, will have error Configuration property "env" is not defined.
This is my nuxt.config.ts
This is how I get the config inside component:
My start command is: cross-env NODE_ENV=production nuxt dev.
I set NODE_ENV=production but it alway return the value inside default.json, not value from production.json or dev.json or staging.json.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
When I migrate my app from nuxt 2 to Nuxt 3, it throws multi errors. I actually don't have any idea how to fix this. There's also no suggest on the internet, Nuxt docs page as well.
I hope to receive any advice.
This is my config folder. In nuxt 2 we don't need to create file default.json. But with Nuxt 3, without default.json, will have error Configuration property "env" is not defined.
This is my nuxt.config.ts
This is how I get the config inside component:
My start command is: cross-env NODE_ENV=production nuxt dev.
I set NODE_ENV=production but it alway return the value inside default.json, not value from production.json or dev.json or staging.json.
Beta Was this translation helpful? Give feedback.
All reactions