Closed antho227 closed 4 years ago
Hi @anthonycluse what version of node
and node-geocoder
are you running? Latest version is only compatible with node >= 10
If you are running a prior version of node you can downgrade to an older version of node-geocder, (also maybe consider upgrading node a lot of cool stuff in the newest version ;) )
My version :
******:~$ node -v
v6.9.4
******:~$ npm -v
3.10.10
node-geocode : "node-geocoder": "^3.26.0"
I did not update node-geocoder
, it was working well yesterday, and today i'm not able to understand waht's happening, I don't have the new version of node-geocoder
, so I don't think the main issue is due to my versions...
You can use an older version of node-geocoder like 3.23.0 that should work, also you should consider upgrading node (node 6 is no maintained anymore)
I've updated my previous post with my versions.
My previous answer is still valid
I tried to change my version of node-geocoder
from 3.26.0 to 3.23.0 and I got the same issue.
/var/www/gestiaweb/gestiaweb.fr.3015/cms/node_modules/node-geocoder/lib/httpadapter/fetchadapter.js:11
this.options = { ...options };
^^^
SyntaxError: Unexpected token ...
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/www/gestiaweb/gestiaweb.fr.3015/cms/node_modules/node-geocoder/lib/geocoderfactory.js:9:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/www/gestiaweb/gestiaweb.fr.3015/cms/node_modules/node-geocoder/index.js:3:23)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
Can you try an older version like 3.10
Yes, indeed, it works forcing the version to 3.10.0
. But i still need to understand why it was working yesterday on my remote server...
What's are working in package.json
: 3.10.0
What's are not working in package.json
: ^3.10.0
Since 3.24.0 node-geocoder do not support node 6 anymore. I really encourage you to upgrade your node version
Ok thank you.
Hello,
Since this morning I get an issue with "node-geocoder".
I'm using Ubuntu to run my NodeJS app. It works on my local server and not on my remote server (Ubuntu).
/var/www/****/****.fr.3015/cms/node_modules/node-geocoder/lib/httpadapter/fetchadapter.js:11 this.options = { ...options }; ^^^ SyntaxError: Unexpected token ... at Object.exports.runInThisContext (vm.js:76:16) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/var/www/****/*****.fr.3015/cms/node_modules/node-geocoder/lib/geocoderfactory.js:9:22) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (/var/www/****/****.fr.3015/cms/node_modules/node-geocoder/index.js:3:23) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3)