-
Notifications
You must be signed in to change notification settings - Fork 64
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
tailwindcss webjar version conflict #1922
Comments
Oh the joy of version ranges. NPM WebJars convert the NPM dependency definitions to Maven dependencies. And in this case it looks like the ranges are incompatible in how Maven deals with them. Your best bet is to override the transitive dependencies with explicit ones so that Maven doesn't try to resolve the graph. Doing that depends on which build tool you are using. |
So I think I'll go a different way with tailwindcss, but just to follow up on the suggestion above (in case someone else comes along with this same issue), this Maven config does produce a successful build:
It removes the lower version dependencies where there are conflicts. |
Thanks for sharing! |
Thanks @ksclarke , so forcing transitive versions works but this way is too dirty I think, but does what I need too |
Yes, it's not ideal. |
There seems to be a version issue with the tailwindcss webjar. Seeing there was already an NPM tailwindcss webjar, I used the form to submit the latest version: 2.0.4. The process worked and a Maven webjar was created, but when I try to use it in a project I get the following version conflict between its dependencies:
Could not resolve version conflict among [org.webjars.npm:tailwindcss:jar:2.0.4 -> org.webjars.npm:reduce-css-calc:jar:[2.1.8,3) -> org.webjars.npm:postcss-value-parser:jar:[3.3.0,4), org.webjars.npm:tailwindcss:jar:2.0.4 -> org.webjars.npm:postcss-value-parser:jar:[4.1.0,5), org.webjars.npm:tailwindcss:jar:2.0.4 -> org.webjars.npm:postcss-functions:jar:[3.0.0,4) -> org.webjars.npm:postcss-value-parser:jar:[3.3.0,4)]
The Maven build fails as a result.
The text was updated successfully, but these errors were encountered: