Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uglify:generated error task #359

Closed
stefanocudini opened this issue Jun 7, 2021 · 2 comments
Closed

uglify:generated error task #359

stefanocudini opened this issue Jun 7, 2021 · 2 comments

Comments

@stefanocudini
Copy link
Contributor

show this at first docker-compose up

Running "uglify:generated" (uglify) task
ors-maps | JS_Parse_Error [SyntaxError]: Invalid assignment
ors-maps | at JS_Parse_Error.get (eval at (/ors-classic-maps/node_modules/grunt-contrib-uglify/node_modules/uglify-js/tools/node.js:18:1), :69:23)
ors-maps | at formatError (internal/util/inspect.js:1164:38)
ors-maps | at formatRaw (internal/util/inspect.js:937:14)
ors-maps | at formatValue (internal/util/inspect.js:791:10)
ors-maps | at inspect (internal/util/inspect.js:328:10)
ors-maps | at formatWithOptions (internal/util/inspect.js:1989:40)
ors-maps | at console.value (internal/console/constructor.js:308:14)
ors-maps | at console.log (internal/console/constructor.js:343:61)
ors-maps | at /ors-classic-maps/node_modules/grunt-contrib-uglify/tasks/uglify.js:144:17
ors-maps | at Array.forEach () {
ors-maps | filename: '../.tmp/concat/vendor.js',
ors-maps | line: 77150,
ors-maps | col: 240,
ors-maps | pos: 2557402
ors-maps | }

@TheGreatRefrigerator
Copy link
Contributor

Hi @stefanocudini,

yes, the build is currently broken, probably due to some version mismatching.
Sadly, i currently don't have any time to investigate and work on this, as it is not high priority -.-
I appreciate any help you can give in tracking down the actual issue. Also PRs are welcome.

Best regards

@TheGreatRefrigerator
Copy link
Contributor

https://giters.com/zenorocha/clipboard.js/issues/737?amp=1

Seems clipboard js has pushed some arrow function into the production distribution -.-

will push a fix tomorrow

TheGreatRefrigerator added a commit that referenced this issue Jun 10, 2021
clipboard 2.0.6 introduced some => functions into dist code.
A fix was introduced, but only available for the npm version
due to a missing update of the version number in the bower.json file.

This broke the build as uglifyjs can't parse => functions.

Fixes #359
TheGreatRefrigerator added a commit that referenced this issue Jun 11, 2021
clipboard 2.0.6 introduced some => functions into dist code.
A fix was introduced, but only available for the npm version
due to a missing update of the version number in the bower.json file.

This broke the build as uglifyjs can't parse => functions.

Fixes #359
TheGreatRefrigerator added a commit that referenced this issue Jun 11, 2021
change release branches to folder strategy

Closes #359
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants