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
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: undefined. (While processing preset: "/Users/hayen/code/node_modules/babel-preset-react-app/index.js")
at Object. (/Users/hayen/code/node_modules/babel-preset-react-app/index.js:51:9)
at Module._compile (module.js:643:30)
at Module._compile (/Users/hayen/code/headless-wp-starter/frontend/node_modules/source-map-support/source-map-support.js:492:25)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at /Users/hayen/code/headless-wp-starter/frontend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:296:17
@ multi ./pages?entry
How can I fix this? This happens when I try to run frontend
node version v8.9.4
The text was updated successfully, but these errors were encountered:
@HayenPhan It looks like there might be an issue with another node_modules directory being at the same level as headless-wp-starter. Could you try removing or moving /Users/hayen/code/node_modules and trying again?
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: undefined. (While processing preset: "/Users/hayen/code/node_modules/babel-preset-react-app/index.js")at Object. (/Users/hayen/code/node_modules/babel-preset-react-app/index.js:51:9)
at Module._compile (module.js:643:30)
at Module._compile (/Users/hayen/code/headless-wp-starter/frontend/node_modules/source-map-support/source-map-support.js:492:25)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
at /Users/hayen/code/headless-wp-starter/frontend/node_modules/babel-core/lib/transformation/file/options/option-manager.js:296:17
@ multi ./pages?entry
How can I fix this? This happens when I try to run frontend
The text was updated successfully, but these errors were encountered: