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

后端 未结 5 2152
暖寄归人
暖寄归人 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:40

    I actually just wanted to add a comment to mtw's post but my reputation doesn't allow for it. I was also able to fix it by adding json|webmanifest to the handlers in the app.yaml file (Angular 9 app on Google Cloud hosting platform) like so...

    handlers:
      - url: /(.*\.(gif|png|jpg|css|js|svg|json|webmanifest)(|\.map))$
        secure: always
        redirect_http_response_code: 301
        static_files: dist/\1
        upload: dist/(.*)(|\.map)
    

提交回复
热议问题