vaadin / hilla

Build better business applications, faster. No more juggling REST endpoints or deciphering GraphQL queries. Hilla seamlessly connects Spring Boot and React to accelerate application development.
https://hilla.dev
Apache License 2.0
898 stars 56 forks source link

Project from start.spring.io fails to start #1360

Closed marcushellberg closed 7 months ago

marcushellberg commented 12 months ago

Description of the bug

A project generated with the following setup fails to start https://start.spring.io/#!type=gradle-project-kotlin&language=java&platformVersion=3.1.4&packaging=jar&jvmVersion=17&groupId=com.example&artifactId=demo&name=demo&description=Demo%20project%20for%20Spring%20Boot&packageName=com.example.demo&dependencies=hilla,devtools

Minimal reproducible example

See above

Expected behavior

The project starts.

Actual behavior

The project doesn't start. "Building frontend bundle" is displayed for a long time without any visible terminal output, then errors: startup.log

Versions:

- Vaadin / Hilla version: 2.1.9
- Node version: 18
- Java version: 17
Kunal-debug-png commented 12 months ago

can you please share the actual video of what you are facing . it's unclear

Artur- commented 12 months ago

The reason for it taking so long is in the logs

2023-09-26T14:03:12.702-07:00 WARN 90903 --- [onPool-worker-2] c.v.f.s.frontend.TaskUpdatePackages : package-lock.json is missing from this project. This may cause the npm package installation to take several minutes. It is recommended to keep the package-lock.json file persistently in your project. Please stand by...

Artur- commented 12 months ago

These errors seem to be something completely different and are probably resolved after a restart

2023-09-26T14:04:10.759-07:00 INFO 90903 --- [v-server-output] c.v.b.devserver.DevServerOutputTracker : Failed to load url /generated/vite-devmode.ts (resolved id: /generated/vite-devmode.ts). Does the file exist?

marcushellberg commented 11 months ago

I only ever got a blank page. I didn't get the page telling me that I should run a gradle command to init the app.

Artur- commented 11 months ago

Was this resolved in 2.3 alpha 6?

cromoteca commented 7 months ago

Cannot reproduce it with Hilla 2.5.5. Application takes some time, but runs. I used the exact configuration provided above.