Parsing error BABEL CUsers17644Desktop新建文件夹 3my-appsrcutilsredisjs Using babel-preset-react-app requires that you specify NODE_ENV or BABEL_ENV environment variables Valid values are development test
This error occurs when using babel-preset-react-app without specifying the NODE_ENV or BABEL_ENV environment variables.
To fix this, you can set the NODE_ENV environment variable to "development", "test", or "production" depending on your environment.
For example, if you are developing locally, you can set NODE_ENV to "development" by running the following command in your terminal:
export NODE_ENV=development
Alternatively, you can add a .env file to the root of your project and specify the environment variable there:
NODE_ENV=development
Make sure to restart your development server after setting the environment variable.
原文地址: https://www.cveoy.top/t/topic/7fV 著作权归作者所有。请勿转载和采集!