Closed vinsilsim closed 8 years ago
It's an ES6 feature. I guess you are using Node 4.x? Try running with the --harmony
flag.
@cypherix93 node v4.2.6
Try running:
node ./build/app/Server.js --harmony
root@Ubuntu-1604-xenial-64-minimal ~/Pokemon-GO-Scanner # node ./build/app/Server.js --harmony /root/Pokemon-GO-Scanner/build/app/core/cluster/PokeWorkerCluster.js:27 static getHeartbeatMapWithCoordinates(latitude, longitude, maxSteps = 8) { ^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.
Ahh, sorry. That particular feature was shipped in Node 6.0.0. Check here.
Either upgrade to Node 6.x or change the particular method signature to:
getHeartbeatMapWithCoordinates(latitude, longitude, maxSteps)
@cypherix93 thank you!
getHeartbeatMapWithCoordinates(latitude, longitude, maxSteps)
Work! which port the server run?
@cypherix93 thanks http://138.201.153.236:32600/ Map dont open =/
Is it working on localhost:32600
? If it is, then make sure the cors configuration inside the server is set properly.
which file I put google api key?
Closing issue as the original issue was solved.
You don't need Google Maps key anymore. I switched the map to Leaflet.
Anyone know why this error?
[nodemon] 1.10.0 [nodemon] to restart at any time, enter
rs
[nodemon] watching: /root/Pokemon-GO-Scanner/build/app/*/ [nodemon] startingnode ./build/app/Server.js
/root/Pokemon-GO-Scanner/build/app/core/cluster/PokeWorkerCluster.js:27 static getHeartbeatMapWithCoordinates(latitude, longitude, maxSteps = 8) { ^SyntaxError: Unexpected token = at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object. (/root/Pokemon-GO-Scanner/build/app/core/PokeScannerApplication.js:12:29)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
[nodemon] app crashed - waiting for file changes before starting...