Cms: Craft.js syntax error on 3.5

Created on 28 May 2020  路  2Comments  路  Source: craftcms/cms

Running into a javascript error in the minified version of Craft.js that is generated in the cpresources folder:

Uncaught SyntaxError: Lexical declaration cannot appear in a single-statement context

Running 3.5 (6d045ea2fb74d5284879ab5cd3173a8975bdab79)

Screenshot 2020-05-28 at 14 43 24

Most helpful comment

Able to reproduce. I鈥檒l fix shortly. In the meantime you can work around it by adding this to config/general.php:

'useCompressedJs' => false,

All 2 comments

Able to reproduce. I鈥檒l fix shortly. In the meantime you can work around it by adding this to config/general.php:

'useCompressedJs' => false,

Fixed now!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leigeber picture leigeber  路  3Comments

RitterKnightCreative picture RitterKnightCreative  路  3Comments

angrybrad picture angrybrad  路  3Comments

angrybrad picture angrybrad  路  3Comments

angrybrad picture angrybrad  路  3Comments