SyntaxError: Invalid or unexpected token
See original GitHub issueHello, 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:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
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.
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.