TypeError in Bolt CMS

javascript json bolt-cms

52 观看

1回复

1129 作者的声誉

I wanted to install extensions in the bolt admin interface. As soon as I open the page it gets my this error:

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

Lookin at the console of the page I get:

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

In this file I found:

/**
 * 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.
 */

So what can I do besides install the extensions manually? If I go this way I can't update Bolt either.

作者: Peter 的来源 发布者: 2017 年 12 月 27 日

回应 1


1

1508 作者的声誉

决定

That is caused by a low-level exception, the latest release from just before Christmas has updates to the JavaScript to be a bit more informative about what is really going on.

作者: Gawain 发布者: 2017 年 12 月 27 日
32x32