Skip to content

Webjar for GraphiQL fails to build due to version conflict #3889

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

Open
jonblack opened this issue Apr 9, 2025 · 0 comments
Open

Webjar for GraphiQL fails to build due to version conflict #3889

jonblack opened this issue Apr 9, 2025 · 0 comments

Comments

@jonblack
Copy link

jonblack commented Apr 9, 2025

When adding GraphiQL to a maven project using webjar using the following:

<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>graphiql</artifactId>
    <version>3.8.3</version>
    <scope>runtime</scope>
</dependency>

I get the following version conflict:

Could not collect dependencies for project com.bol.axle-parade:gqltest-app:jar:development-SNAPSHOT
[ERROR] Could not resolve version conflict among [org.webjars.npm:graphiql:jar:3.8.3 -> org.webjars.npm:graphiql__react:jar:[0.28.2,0.29.0-0) -> org.webjars.npm:types__codemirror:jar:[5.60.8,6.0.0-0), org.webjars.npm:codemirror-graphql:jar:2.2.0 -> org.webjars.npm:types__codemirror:jar:[0.0.90,0.0.91-0)]

I noticed that codemirror-graphql has @types/codemirror pinned to "^0.0.90" for three years now. Is this still relevant?

"// TEMPORARILY PINNED until we fix graphql 15 support": "",
"dependencies": {
"@types/codemirror": "^0.0.90",
"graphql-language-service": "5.3.0"
},

Maven also takes a long time to download all the dependencies. It would useful to have a fully contained dependency-free dist variant like swagger-ui-dist to avoid these problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant