Skip to content

NODE_ENV overwriting results in weird errors #14057

Closed
nuxt/framework
#5417
@ennioVisco

Description

Environment


  • Operating System: Darwin
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.3
  • Package Manager: yarn@3.1.1
  • Builder: vite
  • User Config: ssr, runtimeConfig, typescript, css, buildModules, intlify, alias
  • Runtime Modules: -
  • Build Modules: @vueuse/nuxt@8.4.2, @intlify/nuxt3@0.1.10

Reproduction

I stumbled into an issue very similar to the one of #12772 and #13511, i.e. overriding NODE_ENV environment variable.
This results in a weird blank page, with no clear info on what happened.

I believe it deserves a warning in the https://v3.nuxtjs.org/guide/features/runtime-config/#environment-variables, it took me a week to figure out that that was the problem.

Describe the bug

Additional context

No response

Logs

No response

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions