AtomGraph / LinkedDataHub

The low-code Knowledge Graph application platform. Apache license.
https://atomgraph.github.io/LinkedDataHub/
Apache License 2.0
483 stars 120 forks source link

"Unexpected token" error during Docker build #183

Closed namedgraph closed 5 months ago

namedgraph commented 5 months ago

Reported on the mailing list. This error happens during docker-compose build:

[INFO] --- frontend-maven-plugin:1.12.1:npx (generate-sef) @ linkeddatahub ---
[INFO] Running 'npx xslt3 -t -xsl:/usr/src/platform/target/ROOT/static/com/atomgraph/linkeddatahub/xsl/client.xsl -export:/usr/src/platform/target/ROOT/static/com/atomgraph/linkeddatahub/xsl/client.xsl.sef.json -nogo -ns:##html5 -relocate:on' in /usr/src/platform
[INFO] npx: installed 11 in 2.301s
[INFO] Unexpected token '||='

The cause is an old version of Node.js used in the POM. Updating it to 20.8.1 like this

<nodeVersion>v20.8.1</nodeVersion>

should solve the issue.