Skip to content
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

[PiT 24.7] upgrade vaadin application to 24.7.0.alpha8 failed in production mode #3211

Open
Tracked by #7151
ZheSun88 opened this issue Feb 6, 2025 · 0 comments · May be fixed by vaadin/flow#20963
Open
Tracked by #7151
Labels
bug Something isn't working hilla Issues related to Hilla

Comments

@ZheSun88
Copy link
Contributor

ZheSun88 commented Feb 6, 2025

Describe the bug

[ERROR] The build process encountered an error: Vite process exited with non-zero exit code.

Stderr: 'vite v6.0.11 building for production...

transforming...

src/main/frontend/generated/file-routes.ts(1,55): error TS2307: Cannot find module '@vaadin/hilla-file-router/types.js' or its corresponding type declarations.

✓ 134 modules transformed.

more info can be found from https://github.com/vaadin/platform/actions/runs/13178334785/job/36782855646

Image

Expected-behavior

application builds..

Reproduction

curl -s 'https://start.spring.io/starter.zip?type=maven-project&language=java&bootVersion=3.4.2&baseDir=initializer-vaadin-maven-react&groupId=com.vaadin.initializer&artifactId=initializer-vaadin-maven-react&name=initializer-vaadin-maven-react&description=initializer-vaadin-maven-react&packageName=com.vaadin.initializer&packaging=jar&javaVersion=21&dependencies=vaadin,devtools' --output initializer-vaadin-maven-react.zip
## Unzipping initializer-vaadin-maven-react
unzip -q 'initializer-vaadin-maven-react.zip'
## Changing to initializer-vaadin-maven-react dir
cd 'initializer-vaadin-maven-react'
perl -pi -e 's|<java.version>21</java.version>|<java.version>17</java.version>|' pom.xml
./mvnw -ntp -B spring-boot:run 
<generate the view using hilla and react>

 ## Changing Maven property vaadin.version from 24.6.4 -> 24.7.0.alpha8 in pom.xml
   perl -pi -e 's|(\s*<'vaadin.version'>)[^\s]+(</'vaadin.version'>)|${1}24.7.0.alpha8${2}|g' pom.xml
   ## Adding https://maven.vaadin.com/vaadin-prereleases repository to pom.xml
   perl -pi -e 's|(\s*)(</project>)|$1$1<repositories><repository><id>v</id><url>https://maven.vaadin.com/vaadin-prereleases</url></repository></repositories>\n$1$2|' pom.xml
   ## Adding https://maven.vaadin.com/vaadin-prereleases repository to pom.xml
   perl -pi -e 's|(\s*)(</project>)|$1$1<pluginRepositories><pluginRepository><id>v</id><url>https://maven.vaadin.com/vaadin-prereleases</url></pluginRepository></pluginRepositories>\n$1$2|' pom.xml

./mvnw -ntp -B spring-boot:run 
./mvnw -ntp -B -Pproduction clean package -Dmaven.compiler.showDeprecation 

System Info

Vaadin 24.7.0.alpha8
Node 20

@ZheSun88 ZheSun88 added bug Something isn't working hilla Issues related to Hilla labels Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hilla Issues related to Hilla
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant