vaadin / flow-crm-tutorial

Demo app for the Java Web App tutorial series
The Unlicense
172 stars 185 forks source link

PiT 24.1: project does not compile in production mode #151

Closed manolo closed 1 year ago

manolo commented 1 year ago

Description

When compiling the project for production mode it fails with this JS error

[ERROR] Stderr: 'vite v4.3.9 building for production...
[ERROR] transforming...
[ERROR] ✓ 71 modules transformed.
[ERROR] ✓ built in 729ms
[ERROR] [vite:load-fallback] Could not load frontend/generated/jar-resources/theme-util.js (imported by frontend/generated/theme-flowcrmtutorial.generated.js): ENOENT: no such file or directory, open 'frontend/generated/jar-resources/theme-util.js'

Note that it works:

How to reproduce

git clone https://github.com/vaadin/flow-crm-tutorial.git
cd flow-crm-tutorial
./mvnw install -Pproduction