quarkiverse / quarkus-web-bundler

Create full-stack web apps quickly and easily with this Quarkus extension. It offers zero-configuration bundling for your web app scripts (JS, JSX, TS, TSX), dependencies (jQuery, React, htmx, etc.), and styles (CSS, SCSS, SASS).
Apache License 2.0
16 stars 9 forks source link

incompatibility with extension quarkus-smallrye-reactive-messaging-rabbitmq #234

Closed Frank12B closed 3 weeks ago

Frank12B commented 1 month ago

Hi, I added web bundler to my existing project and got errors during quarkusDev as long as

implementation 'io.quarkus:quarkus-smallrye-reactive-messaging-rabbitmq' was on my classpath.

I created a new small app with codestart with minimal dependencies and could reproduce this in any case.

Environment:

Caused by: java.lang.ExceptionInInitializerError at io.quarkiverse.web.bundler.deployment.DevModeBundlingProcessor.watch(DevModeBundlingProcessor.java:108) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:849) at io.quarkus.builder.BuildContext.run(BuildContext.java:256) at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18) at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516) at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521) at java.base/java.lang.Thread.run(Thread.java:840) at org.jboss.threads.JBossThread.run(JBossThread.java:483) Caused by: java.lang.NullPointerException: Make sure the version.properties contains 'esbuild.version'. at java.base/java.util.Objects.requireNonNull(Objects.java:235) at io.mvnpm.esbuild.Bundler.resolveEmbeddedVersion(Bundler.java:34) at io.mvnpm.esbuild.Bundler.<clinit>(Bundler.java:21) ... 13 more

ia3andy commented 1 month ago

Ok I suppose both are using a version.properties, which is a bit fragile obviously. @edewit could you have a look? Maybe use a more specific file name for the version..

https://github.com/mvnpm/esbuild-java/blob/main/pom.xml#L152

ia3andy commented 1 month ago

@Frank12B thanks for reporting this!

ia3andy commented 1 month ago

@all-contributors please add @Frank12B for doc

allcontributors[bot] commented 1 month ago

@ia3andy

I've put up a pull request to add @Frank12B! :tada:

Frank12B commented 1 month ago

Thank you for maintaining such a useful piece of software!

ia3andy commented 3 weeks ago

@Frank12B could you give this a shot?