New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V 14.1.x: Fails to run "Starter Project" on Tomcat 9 in dev mode, dev-webpack ERROR (Frontend compilation failed) #7137
Comments
Hi! Is there a production mode available? Can you build the app using mvn install -Pproduction and test if it runs after? |
I'll move this to the Flow team. |
Hi! I checked this in production mode (mvn clean package -Pproduction, deploy war on Tomcat) and everything was fine (aplication runs and works ok). Probably because dev-webpack is not used ;) Please notice (in my 14.1.2.log) that this is executed twice: |
A part of it seems like it is about vaadin/spring#525 as the second execution (also does happen with 14.0.15) gets a different set of packages where the inital contains But at least locally the execution of a spring-boot war using 14.1.2 on tomcat 9.0.24 works even if it does do extra work at the moment. |
Hi, I'd like to point out, that i've moved my code to v 14.1.3 and bump up core-js to @3 (such warning was at the beginnig) and now the problem is gone, ie. there are no dev-webpack errors in dev mode :) |
After many hours of frustration, I was able to find an answer I believe will help. Basically making a fat jar does not have access to the file path. |
Looks like the original issue is not reproducible with So I'm closing the ticket. |
Environment:
Eclipse 2019-09, Tomcat 9 (configured as server in Eclipse), JDK8
I took "Starter Project" (with spring) and changed pom to be war application.
When in pom Vaadin is set to 14.1.2 then the starter app does not start in Tomcat because of errors from dev-webpack:
I've tried to clean the project (I've removed node_modules, package.json, package-lock.json, and even webpack.config.js, webpack.generated.js) than did: mvn clean package, npm ddp, npm install. Then I add the app to Tomcat sever and start the server. It didn't help, there was the same webpack errors and Frontend compilation failed.
When in the same app I set in pom Vaadin ver. 14.0.15 (and clean the project at first) I could run this starter app in dev mode adding it to Tomcat server- everything is fine (no dev-webpack errors during tomcat starting), app starts normaly and works fine!
When I return to V 14.1.2, clean the project (as mentioned before) the webpack errors are again. I've even removed everything from the project, leaving only src, frontend and pom, import it to eclipse- it didn't help.
So it's only the problem with V 14.1.x (on 14.1.0 and 14.1.1 too).
What I'm doing wrong?
pom_and_logs.zip
The text was updated successfully, but these errors were encountered: