Syntax errors in minified ghost and vendor javascript files (1.5.0)
See original GitHub issueIssue Summary
The minified versions of ghost.js and vendor.js contain syntax errors that do not appear to be in the original source files.
Steps to Reproduce
- Upgrade to Ghost 1.5.0.
- Navigate to
http://<blog>/ghost
.
Expected Behavior
Expected the administration UI to load.
Actual Behavior
A busy spinner displays and the administration UI never loads due to syntax errors in the javascript files.
Chrome’s console displays the following errors:
Uncaught SyntaxError: Unexpected string vendor.min-ef57d9aa96a4e5a314d97158a9adc339.js:23
Uncaught SyntaxError: Unexpected string ghost.min-64de773f4ee0a0157a4c58644682d13e.js:150
The source at these locations have unexpected string literals in the middle of the expressions. For example, the following is the error in the above ghost.min:
{var e=this._editor.codemirror"spell-checker"===e.getOption("mode")? ...
Note the unexpected "spell-checker"
string literal in the middle of the expression.
I’ve downloaded the 1.5.0 zip file and found the corresponding syntax errors present in the specified files.
Is there a reason why there are two different minified versions of both ghost.js and vendor.js in core/built/assets
?
Technical details:
- Ghost Version: 1.5.0
- Node Version: 6.10.3
- Browser/OS: Chrome 60.0.3112.90 (64-bit), Arch Linux
- Database: MySQL
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
It’s probably because you’re using cloudflare - check out the Ghost Admin not loading section in the troubleshooting docs
I completely understand not prioritizing an issue like this one and I’ll see if I can work on the issue if I get a spare cycle (low confidence of that happening at the moment, though).
I very much appreciate your time and the clear and concise documentation, so it’s definitely not hard to work around this issue.