Open gbourant opened 4 days ago
You shouldn't use web-dependency-locator and the web-bundler together, they serve the same goal.
You can use:
quarkus.web-bundler.dependencies.auto-import=all
then you don't need the app.js
If you wish to keep the app.js, just do import 'htmx.org';
, it should be enough to use it.
To make the second module work you should add the dependency for htmx again since it's provided (non transitive)
Alright, i removed the web-dependency-locator
.
Since the version 2.0.0
of htmx
, the htmx
library is not available at the windows object see https://github.com/bigskysoftware/htmx/issues/2628#issuecomment-2176677081
So in my case quarkus.web-bundler.dependencies.auto-import=all
and import 'htmx.org';
is not useful.
Well, when i added the htmx
to second's module pom.xml it worked but that doesn't make it work out of the box.
Instead, when i used quarkus.web-bundler.dependencies.compile-only=false
(in project-a), it made it work out of the box. (but that made the target directory little bigger)
I don't know which option i will use at the end, but at least now i got 2 options that make it work.
You still have this workaround: https://github.com/quarkiverse/quarkus-web-bundler/issues/84#issuecomment-1830064303
I have the following multi module project https://github.com/gbourant/multi-bundler-bug
It consists of project-a and project-b.
project-a works as expected. the main.js gets bundled.
project-b has a dependency to project-a. if you try to run project-b you get the following error: