Hi, Been using this great thing for a while. But now, all of a sudden, my

Hi,

Been using this great thing for a while.
But now, all of a sudden, my mvn vaadin:build-frontend fails with this error:
ERROR in ./src/views/reports/reports-view.js?babel-target=es5
Module not found: Error: Can’t resolve ‘@polymer/iron-pages/iron-pages.js?babel-target=es5’ in ‘C:\efla\projects\lysiproduction\frontend\src\views\reports’
@ ./src/views/reports/reports-view.js?babel-target=es5 25:0-43
@ …/target/frontend/generated-flow-imports.js?babel-target=es5

ERROR in ./src/views/reports/reports-view.js?babel-target=es6
Module not found: Error: Can’t resolve ‘@polymer/iron-pages/iron-pages.js?babel-target=es6’ in ‘C:\efla\projects\lysiproduction\frontend\src\views\reports’
@ ./src/views/reports/reports-view.js?babel-target=es6 4:0-43
@ …/target/frontend/generated-flow-imports.js?babel-target=es6

The view that contains the reference to @polymer/iron-pages/iron-pages.js has not changed in a long time.

Can anyone tell me what could be causing this error?

Here is the import in my polymer.js template:
import ‘@polymer/iron-pages/iron-pages.js’;
As I said this has been working fine for some time.

Thanks in advance,

Hordur Th.

Further to this, it seems only my -Pproduction build fails:
mvn clean package -Pproduction

Building with only mvn clean package works.

Since I am neither a node.js or maven guru I have no idea what is causing this all of a sudden. But I have attached my pom.xml if anyone could shed a quick light on this :)

Thanks!
18481848.xml (9.07 KB)

\u0000And to make this even more fun, this only happens on the Win Azure VPS. On my MacBookPro the same mvn command with the exact same project works fine. \uD83E\uDD14

Problem solved, human error of course (mine). I had added package.json to .gitignore. Then rebuilt the project and got all the Vaadin dependencies in there but none of the project specific add-ons. Therefore npm never pulled iron-pages down and therefore the build failed.
Living and learning…
Sorry about the noise.

Hordur