ts-graphql-plugin icon indicating copy to clipboard operation
ts-graphql-plugin copied to clipboard

graphql rename causes problems for webpack parser (Error: Cannot find module 'graphql/validation/rules/ExecutableDefinitions')

Open devkral opened this issue 2 years ago • 2 comments


name: Bug report about: Create a report to help us improve title: '' labels: '' assignees: '' ---Describe the bug The graphql package renamed its validation rule(s). This causes errors with this project, as e.g. 'graphql/validation/rules/ExecutableDefinitions' is linked. This is the case with the webpack plugin

Expected behavior use webpack plugin with newest graphql

'''Solution** Update imports

devkral avatar Nov 01 '21 23:11 devkral

I found out that the error was caused by the ts-graphql-plugin being incompatible with graphql v16. In my project, I lowered the version to graphql v15 and the problem went away.

mizdra avatar Nov 09 '21 04:11 mizdra

I fixed the problem by appending"graphql-language-service-interface": "2.10.2" to the resolutions field of my package.json without downgrading to v15.

alex-kinokon avatar Feb 05 '22 20:02 alex-kinokon

Close this because graphql-language-service-interface is no longer depended via https://github.com/Quramy/ts-graphql-plugin/pull/1202

Quramy avatar Mar 15 '24 14:03 Quramy