Skip to content

Build failing: incompatible npm version (9.2.0) with Vaadin 24.x #176

@javier-godoy

Description

@javier-godoy

The Google Maps Add-on build is failing during the prepare-frontend phase due to npm 9.2.0 being flagged as incompatible by Vaadin's version checker.

Reported by: Vaadin Ecosystem Build
Build log: https://ecosystembuild.parttio.org/logs/24.9-SNAPSHOT/Google%20Maps%20Add-on-build.log

Error

The Vaadin Maven plugin rejects npm 9.2.0 as a problematic version during prepare-frontend. This causes the build to fail before any compilation occurs.

Notes

  • The build fails against Vaadin 24.9-SNAPSHOT (tested by the ecosystem build)
  • The build also fails with the project's own configured Vaadin version (24.2.6 via the v24 profile), so this is not exclusively a snapshot compatibility issue

Possible fixes

  1. Upgrade npm globally: npm install -g npm@latest
  2. Configure frontend-maven-plugin to install a compatible Node/npm version:
    mvn com.github.eirslett:frontend-maven-plugin:1.10.0:install-node-and-npm -DnodeVersion="v20.9.0"
    
  3. Add -Dvaadin.ignoreVersionChecks=true to bypass the check (not recommended for production)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Inbox (needs triage)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions