Babel-preset-react-app not getting environment variables
Failed to compile. /src/index.js Module build error: Error: Usage
babel-preset-react-app
required to specifyNODE_ENV
orBABEL_ENV
environment variables. Valid values ββare development, test, and production. Instead I got: "undefined". (While processing is Pre-installed: "C: \ Users \ Mitch \ OneDrive \ Development \ Git \ react seeds \ node_modules \ pandemonium-pre-installed react app \ index.js") on Array.map (native)
I keep getting the above error no matter how many weird and wonderful ways I try to set either an environment variable or an environment variable starting from updating my react app and even getting it from a new app created from "create-react" - app '- What am I clearly doing wrong?
source to share