cerebro: Cerebro installation fails with unexpected token operator
- I am on the latest Cerebro.app version
- I have searched the issues of this repo and believe that this is not a duplicate
- OS version and name: Arch
- Cerebro version: 0.3.0-1 (cerebro) & 0.2.7.r4.ga69a0a8-1 (cerebro-git)
Issue
Installing via AUR results in following error message with both cerebro and cerebro-git package:
Parse error at ./app/dist/main.bundle.js:940,5060
,h,k){'use strict';var m=k(9);const n=u=>u.replace(/[^а-яa-z0-9\s]/i,'').replace
^
SyntaxError: Unexpected token: operator (>)
at JS_Parse_Error.get (eval at <anonymous> (/home/jonathan/.cache/pacaur/cerebro/src/cerebro-0.3.0/node_modules/uglify-js/tools/node.js:27:1), <anonymous>:86:23)
at /home/jonathan/.cache/pacaur/cerebro/src/cerebro-0.3.0/node_modules/uglify-js/bin/uglifyjs:384:39
at time_it (/home/jonathan/.cache/pacaur/cerebro/src/cerebro-0.3.0/node_modules/uglify-js/bin/uglifyjs:620:15)
at /home/jonathan/.cache/pacaur/cerebro/src/cerebro-0.3.0/node_modules/uglify-js/bin/uglifyjs:345:9
at tryToString (fs.js:512:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:500:12)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 4
- Comments: 18 (7 by maintainers)
As a temporary solution I fixed path to uglify binary (
./node_modules/uglify-es/bin/uglifyjs, instead of./node_modules/.bin/uglifyjs). I’ll try to investigate more why it happens, but #362 should fix installation issue@IgnusG yep, started to fail on travis after merging last PR, I didn’t find time to fix, I’ll try to do it asap
@KELiON I’ve tried @maximbaz’s docker and your command to build locally. Same error 🙁