项目是用 React Create App 创建的,编译的命令为:react-scripts build
,
报错:
gitpod /workspace/blog/admin $ npm run build
> [email protected] build
> react-scripts build
Creating an optimized production build...
Failed to compile.
./src/components/Users.js
Line 109:3: 'fetchUserStatus' is not defined no-undef
Line 124:3: 'fetchData' is not defined no-undef
Line 140:3: 'addUser' is not defined no-undef
Line 144:3: 'deleteUser' is not defined no-undef
Line 157:3: 'editUser' is not defined no-undef
离谱点在于:
项目地址是: https://github.com/songquanpeng/blog/tree/master/admin
注意是 admin 文件夹中的那个。
1
azcvcza 2021-02-23 17:10:00 +08:00 1
改一下 eslint 的配置?把警告等级调一下
|
2
shintendo 2021-02-23 17:13:34 +08:00 1
考虑一下文件名大小写问题?是否曾经存在过小写的 users.js ?
|