reactjs - 部署到 netlify 时,create-react-app 上的空白页
问题描述
我正在尝试将 create-react-app(目前在 github 上)部署到 netlify。部署后它显示一个空白页面。
我添加的 Netlify 配置: 构建命令: yarn build, 发布目录: build
这是我在 package.json 上的脚本
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy": "gh-pages -d build"
},
解决方案
在 Netlify 上部署后,我只在移动设备上得到空白页。在我从 Redux 商店中删除 REDUX DEVTOOLS EXTENSION 后,它起作用了。
推荐阅读
- access-token - Azure API 管理 - 如何刷新访问令牌后端 API?
- php - 无法从 XAMPP PHP 运行 Python 脚本
- perl - Perl - 需要明确的包名
- performance - 在 Torch 中计算频域卷积的更快替代方案
- python-3.x - 计算一个组合在日志中使用的次数
- python - 如何在 Django Rest Framework ViewSet 中使用 Last-Modified 标头?
- python - 如何从 AWS Lambda 提供 GIF、JPEG 和 PNG
- python-3.x - 告诉我如何通过 QUERY 从树莓派访问 OracleDB
- python - Image.fromarray() 正在制作 256 的矩阵 mod 中的每个元素
- wpf - 画布位置到图像像素