我正在尝试在 Cloudfare 上部署一个 create-react-app 项目,但出现此错误:
14:13:41.544 Creating an optimized production build...
14:13:42.821 Failed to compile.
14:13:42.822
14:13:42.822 Module not found: Error: Can't resolve 'animate.css' in '/opt/buildhome/repo/src'
14:13:42.822
14:13:42.822
14:13:42.849 Failed: build command exited with code: 1
14:13:43.787 Failed: an internal error occurred
我的 package.json 有 animate.css 但我不确定我做错了什么。
package.json
"dependencies": {
...
"animate.css": "^4.1.1",
"aos": "^3.0.0-beta.6",
"bootstrap": "^5.2.3",
"react": "^18.2.0",
...
},