Ruuvitag-movement-notifier: errors


#1

In this project


When I give final command “node index.js” I got these errors
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:414:25)
at Object.Module._extensions…js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object. (/home/pi/ruuvitag-movement-notifier/index.js:1:77)
at Module._compile (module.js:435:26)
at Object.Module._extensions…js (module.js:442:10)


#2

I would suggest to create an issue ticket on the GitHub repo. Unfortunately, I haven’t tried this so cannot help… But probably @Espesen can :sunglasses:


#3

This might be caused by different version of NodeJS on your machines.
https://www.npmjs.com/package/use-strict might help you.