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.

Error: Line 1: Unexpected token

See original GitHub issue

Hi, i’m receiving this error on linux ubuntu machine instead in local Mac works perfectly. What can be the issue?

Thanks, Fabio

/srv/src/node_modules/javascript-obfuscator/dist/webpack:/JavaScriptObfuscator/src/EspreeFacade.ts:100 throw new Error(Line ${position.line}: ${errorMessage}\n${formattedPointer} ${formattedCodeSlice}); ^ Error: Line 1: Unexpected token <

…<html>… at Function.value (/srv/src/node_modules/javascript-obfuscator/dist/webpack:/JavaScriptObfuscator/src/EspreeFac ade.ts💯15) at Function.value (/srv/src/node_modules/javascript-obfuscator/dist/webpack:/JavaScriptObfuscator/src/EspreeFac ade.ts:44:65) at e.value (/srv/src/node_modules/javascript-obfuscator/dist/webpack:/JavaScriptObfuscator/src/JavaScriptObfusc ator.ts:154:34) at e.value (/srv/src/node_modules/javascript-obfuscator/dist/webpack:/JavaScriptObfuscator/src/JavaScriptObfusc ator.ts:135:55) at Function.value (/srv/src/node_modules/javascript-obfuscator/dist/webpack:/JavaScriptObfuscator/src/JavaScrip tObfuscatorFacade.ts:27:85) at IncomingMessage.chres.on (/srv/src/app.js:193:66) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1055:12) at _combinedTickCallback (internal/process/next_tick.js:138:11)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ziozec-zzcommented, Apr 16, 2018

Sorry my issue was related to an wasm file

0reactions
lock[bot]commented, Jun 6, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SyntaxError: Unexpected token - JavaScript - MDN Web Docs
The JavaScript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided.
Read more >
MongoDB Syntax Error Unexpected Token - Stack Overflow
I am just following tutorialspoint.com for learning mongoDB. I executed these two commands exactly as given : db.test.save( { a: 1 } ...
Read more >
JavaScript Error Handling: Unexpected Token - GeeksforGeeks
Not follow them throws an error.An unexpected token occurs if JavaScript code has a missing or extra character { like, ) + –...
Read more >
unexpected token :syntax error while importing node red code ...
When you paste it in, can you check no line breaks sneak in and that you paste the whole thing in.
Read more >
Have a JavaScript Unexpected Token Error? Check Your Syntax
Today, we are discussing the Unexpected Token Error within our JavaScript Error Handling series. This JavaScript error is a subset of 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