Bolt CMS中的TypeError

时间:2017-12-27 17:42:22

标签: javascript json bolt-cms

我想在bolt管理界面中安装扩展程序。只要我打开页面就会出现这个错误:

  

发生未知错误。这是错误消息: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 个答案:

答案 0 :(得分:1)

这是由一个低级异常引起的,圣诞节前后的最新版本对JavaScript的更新提供了更多关于真实情况的信息。