Manifest: Line: 1, column: 1, Syntax error on Chrome browser

后端 未结 5 2110
暖寄归人
暖寄归人 2021-02-06 05:48

I have a react app that built through npm run build. GET and POST request from the front-end to back-end gives status 200 but I am getting a weird error that may cause all the i

5条回答
  •  耶瑟儿~
    2021-02-06 06:17

    I had the same problem ("Manifest: Line: 1, column: 1, Syntax error") while running my app (react app with react-router, published with AWS Amplify).

    My problem was fixed by doing the following: In "Rewrites and redirects" make sure you have "json" in the following line:

    Source address:
    
    
    Target address:
    /index.html
    
    Type:
    200 (Rewrite)
    

    The above solution also fixed problem with non-working react-router links in production as it was reported in the following thread: React Router DOM not working correctly on Amplify Console AWS

    Here is to my personal project with fixed manifest.json issue, as well as non-working react-router issue (a link to some random code snippet - fibonacci memoization in this case):

    https://everhint.com/hintlink/algorithms/javascript/codesnippet/fibonacci/memoization/fibonacci-memoization/d01f275b-6acf-4f26-9448-e99939c9d4b7.html

提交回复
热议问题