當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
Manifest is not valid JSON. Line: 1, column: 1 项目打包报错解决方法
生活随笔
收集整理的這篇文章主要介紹了
Manifest is not valid JSON. Line: 1, column: 1 项目打包报错解决方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
?出現這個問題,一般都是因為package.json 或者 manifest.json 文件出了問題
而不要以為是 xxx.manifest 文件出了問題
這次出現問題的原因是因為如下代碼不是自己手打的,而是網頁上復制來的,而報錯原因也很容易看見,line 為行數 , column 為列或者說是屬性
Line: 1, column: 1 意思就是說第一行第一個屬性出了問題(后來發現復制來的 json 里,雙引號居然是中文的,而在記事本里不好看出來。。。)
?正確的json代碼
{ "main": "index.html", "name": "guimie", "description": "gm", "version": "1.0.0", "keywords": [ "abc", "abc" ], "window": { "title": "百度", "icon": "favicon.png", "toolbar": true, "frame": true, "width": 1200, "height": 600, "position": "center", "min_width": 1200, "min_height": 600, "show_in_taskbar":true }, "webkit": { "plugin": true }, "chromium-args":"–incognito" }總結
以上是生活随笔為你收集整理的Manifest is not valid JSON. Line: 1, column: 1 项目打包报错解决方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: C++直接初始化和复制初始化
- 下一篇: stm32-Hardfault及内存溢出