Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Unexpected token error with examples #1

@coret

Description

@coret

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

Is a Node 14 required for the allmaps cli tools ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions