question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax errors in minified ghost and vendor javascript files (1.5.0)

See original GitHub issue

Issue 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

  1. Upgrade to Ghost 1.5.0.
  2. 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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vikaspotluri123commented, Aug 4, 2017

It’s probably because you’re using cloudflare - check out the Ghost Admin not loading section in the troubleshooting docs

0reactions
peterhuenecommented, Aug 4, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: undefined is not a function on loading ...
I want to concatenate all files and minify them for production. Please help. EDIT: I merged the Javascript and CSS in the order...
Read more >
Eclipse .min.js Files Multiple Syntax Errors - Telerik
Hi, I'm looking to use Kendo UI with PhoneGap to create a mobile app. I have PhoneGap working fine but when I copy...
Read more >
[fedora-arm] arm rawhide report: 20150721 changes
CDF data file New package: R-hgu95av2probe-2.16.0-1.fc23 Probe ... Maven plugin that generates files based on grammar file(s) New package: ...
Read more >
Minifying ionic.bundle.js file
We now want to minify the js file using yuicompressor. However, the compression is failing though the dependency injection is correct in ionic....
Read more >
SyntaxError: Unexpected token in JavaScript | bobbyhadz
Make sure that your script tags point to a valid path and try renaming all your files to lowercase letters only. Sometimes the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found