question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

14.1.0.beta2 fails to find imports in node_modules tree for vaadin-combo-box & vaadin-time-picker

See original GitHub issue

When I do a Maven clean & install and then run my app from IntelliJ 2019.3 Ultimate edition EAP using external Tomcat 9.0.x, I see this message about missing vaadin-combo-box & vaadin-time-picker.

[RMI TCP Connection(2)-127.0.0.1] INFO dev-updater - 

  Failed to find the following imports in the `node_modules` tree:
      - @vaadin/vaadin-combo-box/src/vaadin-combo-box.js
      - @vaadin/vaadin-time-picker/src/vaadin-time-picker.js
  If the build fails, check that npm packages are installed.

  To fix the build remove `node_modules` directory to reset modules.
  In addition you may run `npm install` to fix `node_modules` tree structure.

Taking that advice to delete the node_modules folder from my project, and rebuild, does not help. The folder is recreated, but the error message appears again after a clean, install, and run.

I presume the failure above is the cause of further error messages:

[webpack] ERROR dev-webpack - ERROR in ../node_modules/@vaadin/flow-frontend/comboBoxConnector-es6.js
[webpack] ERROR dev-webpack - Module not found: Error: Can't resolve '@vaadin/vaadin-combo-box/src/vaadin-combo-box-placeholder.js' in '/Users/basilbourque/IdeaProjects/pics2go/node_modules/@vaadin/flow-frontend'
[webpack] ERROR dev-webpack -  @ ../node_modules/@vaadin/flow-frontend/comboBoxConnector-es6.js 4:0-99 7:36-55
[webpack] ERROR dev-webpack -  @ ../target/frontend/generated-flow-imports.js
[webpack] ERROR dev-webpack - 
[webpack] ERROR dev-webpack - ERROR in ../node_modules/@vaadin/flow-frontend/comboBoxConnector-es6.js
[webpack] ERROR dev-webpack - Module not found: Error: Can't resolve '@vaadin/vaadin-combo-box/src/vaadin-combo-box-placeholder.js' in '/Users/basilbourque/IdeaProjects/pics2go/node_modules/@vaadin/flow-frontend'
[webpack] ERROR dev-webpack -  @ ../node_modules/@vaadin/flow-frontend/comboBoxConnector-es6.js 4:0-99 7:36-55
[webpack] ERROR dev-webpack -  @ ../target/frontend/generated-flow-imports.js
[webpack] ERROR dev-webpack - ℹ 「wdm」: Failed to compile.
[webpack] ERROR dev-webpack - 
------------------ Frontend compilation failed. -----------------

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
caaladorcommented, Dec 4, 2019

This state could be reliably duplicated using the base-starter-spring with 14.1.0.rc1 by: • Run mvn spring-boot:run (things work as expected) • Stop the server • Delete folders node_modules and target • Run mvn package -Pproduction

This will for some reason leave the project in a state where we are missing vaadin-custom-field in the package-lock.json and thus it is not dowloaded to node_modules but only under the shrinkwrap targets.

to fix the situation a npm ddp or deletion of package-lock.json and target (should be fine with mvn clean package -Pproduction) should be done until an automatic solution can be found.

0reactions
Silock1commented, Oct 1, 2022

This state could be reliably duplicated using the base-starter-spring with 14.1.0.rc1 by: • Run mvn spring-boot:run (things work as expected) • Stop the server • Delete folders node_modules and target • Run mvn package -Pproduction

This will for some reason leave the project in a state where we are missing vaadin-custom-field in the package-lock.json and thus it is not dowloaded to node_modules but only under the shrinkwrap targets.

to fix the situation a npm ddp or deletion of package-lock.json and target (should be fine with mvn clean package -Pproduction) should be done until an automatic solution can be found.

Thanks ! It worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Web Libraries in Jars - WebJars
Bootstrap Treeview JQuery plugin, org.webjars, bootstrap-treeview, 1.2.0 · bootstrap-accessibility-plugin, org.webjars, bootstrap-accessibility-plugin ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found