Manifest.json Unexpected Token

前端 未结 6 1082
被撕碎了的回忆
被撕碎了的回忆 2021-02-10 20:30

Hello I pushed a react/express project up to heroku (https://polar-oasis-57801.herokuapp.com/) and received the following errors in the console: Chrome console error messages

6条回答
  •  孤独总比滥情好
    2021-02-10 20:55

    I had the same issue I solve it by:

    1. Go into package.json file in your react app.

    2. You will see the homepage attribute at the top, remove it either copy that URL.

    • If you remove it then again create build and use that build in your express.static('./build').

    • If you copy it then use that url in your app.use("that copied url" , express.static('./build')) in your express server file.

提交回复
热议问题