Closed mvysny closed 4 years ago
When I try ./gradlew -x vaadinTranspileDependencies
the compilation succeeds, but none of the package.json
, package-lock.json
, webpack.config.js
nor webpack.generated.js
are generated.
Launching the project also fails with Unable to determine mode of operation. To use npm mode, ensure 'flow-build-info.json' exists on the classpath
.
However, I tried to create a very simple test project using ./gradlew vaadinCreateProject
and compiling that project succeeded (even though the package.json
and other files were still not created). I can see from flow-build-info.json
that the production mode has been used: {"compatibilityMode":false,"productionMode":true,"enableDevServer":false}
.
Is the development mode supported yet please?
Thanks for testing, helps a lot!
I'll try out your github repository this weekend and see where it is failing.
However, I tried to create a very simple test project using ./gradlew vaadinCreateProject and compiling that project succeeded (even though the package.json and other files were still not created).
The build files should be under <project root>/build/frontend
. The plugin does not put them under the root as it clutters the project and prevents proper gradle caching.
Is the development mode supported yet please?
No development mode yet. Sorry :)
@mvysny
Created PR https://github.com/mvysny/karibu10-helloworld-application/pull/3 to fix the remaining build issues. At least I got the project to run when providing the PRO credentials.
Hi John, thanks for the great plugin, keep up the great work :wave: I've tried to port the karibu10-helloworld-app to npm mode, unfortunately the Vaadin Gradle Flow plugin throws an exception for me. Please find the information attached below.
Desktop (please complete the following information):
Describe the bug The compilation of Vaadin Kotlin project fails.
To Reproduce Steps to reproduce the behavior:
./gradlew
Expected behavior The build should succeed.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
The build.gradle.kts:
The stacktrace: