2017-12-27 1080 views
-1

我想在螺栓管理界面中安裝擴展。當我打開網頁就得到我的這個錯誤:螺栓中的類型錯誤CMS

An unknown error occurred. This was the error message: JSON.parse: unexpected character at line 1 column 1 of the JSON data

在頁面的控制檯看着我得到:

TypeError: n.error is undefined [Learn More] bolt.js:9:20734
n >http://localhost/bolt-public/js/bolt.js:9:20734
o/ http://localhost/bolt-public/js/bolt.js:9:23517
l >http://localhost/bolt-public/js/lib.js:1:37033
fireWith >http://localhost/bolt-public/js/lib.js:1:37801
r >http://localhost/bolt-public/js/lib.js:1:74124
n/< >http://localhost/bolt-public/js/lib.js:1:79953

在這個文件中,我發現:

/** 
* These are Bolt’s COMPILED JS files! 
* Do not edit this file, because all changes will be lost. You can edit the 
* `*.js` files in `app/src/js/` and then run `yarn grunt updateBolt` to generate 
* this file. You will need to use the "Clone the Git Repository" installation method, to 
* get these files. See: https://docs.bolt.cm/core-development/install-git-clone, 
* as well as the `README.md` file in the `app/src/` folder. 
*/ 

那麼除了手動安裝擴展之外,我還能做什麼?如果我這樣去,我也不能更新Bolt。

回答

1

這是由低級異常引起的,聖誕節前的最新版本已經更新了JavaScript,以便更多地瞭解真正發生的事情。

+0

我可以專門更新這些部件嗎?還是必須設置整個項目? –

+1

你可以運行'作曲者更新螺栓/螺栓',並會照顧它 – Gawain

+0

更新的作品,該網站仍然不會。 –