14.1.0.beta2 fails to find imports in node_modules tree for vaadin-combo-box & vaadin-time-picker
See original GitHub issueWhen 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:
- Created 4 years ago
- Comments:9 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
andtarget
• Run mvn package -PproductionThis 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 ofpackage-lock.json
andtarget
(should be fine withmvn clean package -Pproduction
) should be done until an automatic solution can be found.Thanks ! It worked for me.