Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set NODE_ENV or BABEL_ENV in formatter config #75

Open
anotheri opened this issue May 14, 2020 · 0 comments · May be fixed by #87
Open

How to set NODE_ENV or BABEL_ENV in formatter config #75

anotheri opened this issue May 14, 2020 · 0 comments · May be fixed by #87

Comments

@anotheri
Copy link

Hey there!

I'm using babel module resolver and getting this error:

Error: [eslint-import-resolver-babel-module] Error: [BABEL] 
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: undefined. (While processing: "node_modules/babel-preset-react-app/index.js")
    at module.exports (node_modules/babel-preset-react-app/create.js:33:11)
    at module.exports (node_modules/babel-preset-react-app/index.js:19:10)
    at node_modules/@babel/core/lib/config/full.js:165:14
    at cachedFunction (node_modules/@babel/core/lib/config/caching.js:33:19)
    at loadPresetDescriptor (node_modules/@babel/core/lib/config/full.js:235:63)

How can I define env vars in eslint-formatter config?
Thanks in advance.

@anotheri anotheri changed the title How to set NODE_ENV or How to set NODE_ENV or BABEL_ENV in formatter config May 14, 2020
@caub caub linked a pull request Nov 13, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant