我使用Express后端的React应用程序托管在Heroku上,所有路由都按照预期工作,直到页面刷新。以编程方式刷新页面,或者使用刷新按钮返回:
Failed to load resource: the server responded with a status of 404 (Not Found)“后退”和“前进”按钮(在刷新前工作)停止工作,使应用程序返回的唯一方法是导航到"/“。直到下一
我按照https://github.com/gitname/react-gh-pages的指示将我的react应用程序部署到github页面。在链接中,我得到了一个空白页面和一个404错误:Failed to load resource: the server responded with a status of 404 () 我的应用程序在本地主机上工作"web-vitals": "
react_devtools_backend.js:2574 TypeError: Cannot read property 'length' of undefined at ba (react-dom.production.min.js:167)
at Object.wa [as useEffect] (react-dom.production.