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.

Cerebro installation fails with unexpected token operator

See original GitHub issue
  • 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)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
KELiONcommented, Jul 11, 2017

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

1reaction
KELiONcommented, Jul 10, 2017

@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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected token: operator (<) in terser plugin #6219 - GitHub
Hi, I have updated to last version of docusaurus but when I try to npm run build I have the following error: assets/ ......
Read more >
Cerebral Administrator's Guide - Veriato
If the Agent fails to install when expected, Cancel the pending install, or Uninstall the unfinished install, and try again. Text message.
Read more >
COMMON ERRORS IN KRONOS AND HOW TO FIX THEM
Employee Error Details. Entering work hours before they have actually been worked. Employees are not allowed to record their work time until they...
Read more >
"syntax error near unexpected token" when installing R-3.6.3 ...
I have R-4.0.5 installed on my Linux Mint 20.1 platform however, I need R-3.6.3 for a class I'm taking so I'm trying to...
Read more >
Infinity Installation and Upgrade Guide - Blackbaud
If you do not perform this step, you will receive a non-compliance error when you upgrade The Raiser's Edge. Note: During the upgrade,...
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