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.

SyntaxError: Invalid or unexpected token

See original GitHub issue

Hello, I just run npm install and then after node scripts/server.js but its error `{ backend: { accessToken: ‘’, enableWebdav: false, performance: { whiteboardInfoBroadcastFreq: 1 } }, frontend: { onWhiteboardLoad: { setReadOnly: false, displayInfo: false }, showSmallestScreenIndicator: true, imageDownloadFormat: ‘png’, drawBackgroundGrid: false, backgroundGridImage: ‘bg_grid.png’, performance: { refreshInfoFreq: 5, pointerEventsThrottling: [ { fromUserCount: 0, minDistDelta: 1, maxFreq: 30 }, { fromUserCount: 10, minDistDelta: 5, maxFreq: 10 } ] } } } C:\Users\praful\Desktop\Projects\whiteboard-master\scripts\services\ReadOnlyBackendService.js:9 #idToReadOnlyId = new Map(); ^

SyntaxError: Invalid or unexpected token at new Script (vm.js:79:7) at createScript (vm.js:251:10) at Object.runInThisContext (vm.js:303:10) at Module._compile (internal/modules/cjs/loader.js:657:28) at Object.Module._extensions…js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:22:18) `

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
praful67commented, Jun 9, 2020

Thanks for the reply, I am installing version 12 now and there was one more issue, I cant drag and drop images in the mobile browser. Any idea?

Update : That IMG upload I have done myself, thanks for your support !, Its the best Collaborative Whiteboard there in Github.

0reactions
FloChehabcommented, Jun 9, 2020

Are you sure you running node 12 or heigher? Or maybe @FloChehab know what this could mean? 😃

Hi, I agree with you @cracker0dks, @praful67 it looks like you are running with a node version <12. You should be able to install node 12 from here https://nodejs.org/en/download/ or your preferred location.

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 >
Uncaught SyntaxError: Invalid or unexpected token
I am a beginner so I get stuck in syntax a lot. If it is that then please help me out. javascript ·...
Read more >
SyntaxError: Unexpected token in JavaScript | bobbyhadz
The "Uncaught SyntaxError: Unexpected token" error also occurs if you have a missing or extra bracket, parenthesis or comma.
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 >
Have a JavaScript Unexpected Token Error? Check Your Syntax
The JavaScript's parser expects tokens and symbols in a particular order, with relevant values or variables in between. Often, an Unexpected ...
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