Skip to content

"Unexpected token" error during Docker build #183

@namedgraph

Description

@namedgraph

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions