我迫切需要帮助。
我已经为客户端部署了我的React项目,但是当我访问该链接时,它显示为空白屏幕。
当我部署到netlify时,它可以正常显示,但是现在我正在使用托管程序,它没有显示。
我尝试在package.json文件中添加“ homepage”:“。”,但是它没有任何改变。这似乎是一个很流行的答案。但这没有用,所以我删除了它。
这是我的package.json文件:
{
"name": "andyburnsfitness",
"version": "0.1.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.28",
"@fortawesome/free-solid-svg-icons": "^5.13.0",
"@fortawesome/react-fontawesome": "^0.1.9",
"axios": "^0.19.2",
"bootstrap": "^4.5.0",
"core-js": "^3.6.5",
"emailjs-com": "^2.4.1",
"nice-try": "^2.0.1",
"nodemailer": "^6.4.6",
"react": "^16.13.1",
"react-animate-on-scroll": "^2.1.5",
"react-app-polyfill": "^1.0.6",
"react-bootstrap": "^1.0.1",
"react-dom": "^16.13.1",
"react-mail-form": "^2.1.0",
"react-reveal": "^1.2.2",
"react-router-dom": "^5.2.0",
"react-router-scroll-top": "^0.2.1",
"react-scripts": "2.1.8",
"react-scroll": "^1.7.16",
"react-scroll-to": "^3.0.0-beta.6",
"react-simple-contact-form": "0.0.1",
"sendmail": "^1.6.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}
此处是网站的网址:www.acfitness.live
非常感谢您的帮助。我正在祈祷解决方案!
如果您需要更多信息,请告诉我
更新
我刚刚看到此消息在控制台中:
“源映射错误:错误:尝试获取资源时出现NetworkError。 资源网址:http://localhost:3000/static/js/0.chunk.js 源地图URL:0.chunk.js.map”