Manifest is not valid JSON. Line: 1, column: 1, Unexpected token

前端 未结 10 1295
小鲜肉
小鲜肉 2020-12-09 08:31

keep getting this error: \"Manifest is not valid JSON. Line: 1, column: 1, Unexpected token.\" i don\'t understand what the issue is with my code? here is what i have so f

10条回答
  •  一向
    一向 (楼主)
    2020-12-09 08:38

    This error also occurs when manifest is empty, or there is no manifest at all. If u use some framework, eg. Angular, just check whether you have manifest in your production build. If not - add "manifest.json" in your angular.json/angular-cli.json to assets array.

    Example: "assets": ["assets", "favicon.ico", "manifest.json"]

提交回复
热议问题