You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
When I run the second and third example (having also fetched the cli-examples repo) I get an unexpected token error (the first examples works ok).
$ ./geo-mask.js -a ../cli-examples/NL-RtSA_4201_I-138-02-5.json
/home/http/gtm.coret.org/allmaps/cli/node_modules/@allmaps/annotation/dist/cjs/index.js:30
return annotation?.target?.service?.[0]
^
SyntaxError: Unexpected token '.'
at wrapSafe (internal/modules/cjs/loader.js:915:16)
at Module._compile (internal/modules/cjs/loader.js:963:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/home/http/gtm.coret.org/allmaps/cli/geo-mask.js:5:26)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
$ ./annotation-to-gdal-script.js -a ../cli-examples/NL-RtSA_4201_I-138-02-5.json -s ../cli-examples -o ../cli-examples/tiles | bash
[ similar error]
$ node --version
v12.22.10