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
babel-preset-react-app forces to use only specific NODE_ENV or BABEL_ENV i.e development / production / test.
And when i am trying to use any another environment then it is showing the below error:
Module build failed: Error: Using babel-preset-react-app requires that you specify NODE_ENV or BABEL_ENV environment variables. Valid values are "development", "test", and "production". Instead, received: "staging"
But what to do if we need to use it with some another environment like for UAT environment etc. ?
Expected behavior
It should support any environment or environment other than specific should be treat like production.
The text was updated successfully, but these errors were encountered:
This is intentional because this is how we decide which plugins to apply. However a cleaner way to do so would be by adding options to the preset, and reading target environment from options.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
Uh oh!
There was an error while loading. Please reload this page.
Can you reproduce the problem with latest npm?
Yes
Can you still reproduce it?
Yes
Description
babel-preset-react-app
forces to use only specificNODE_ENV
orBABEL_ENV
i.edevelopment
/production
/test
.And when i am trying to use any another environment then it is showing the below error:
Module build failed: Error: Using
babel-preset-react-app
requires that you specifyNODE_ENV
orBABEL_ENV
environment variables. Valid values are "development", "test", and "production". Instead, received: "staging"But what to do if we need to use it with some another environment like for UAT environment etc. ?
Expected behavior
It should support any environment or environment other than specific should be treat like production.
The text was updated successfully, but these errors were encountered: