Open nikolay-emrikh-stenn opened 1 year ago
I had a similar issue, and it was resolved after I updated @babel/runtime
.
The error I encountered was Unable to find preset matching client
. At that time, I was using @babel/runtime
version 7.4.5
, which caused the error:
Cannot find module '@babel/runtime/helpers/objectSpread2'.
I resolved it by installing @babel/runtime
version 7.22.5
.
It happens with me while I have 7.23.2
I resolved it by installing
@babel/runtime
version7.22.5
.
@rokiyama THANK YOU!!
Thanks everyone for the reports!
I've labeled the issue according to our new Contribution Guide and issue flow.
It seems already got into stage 0
.
Now in order to advance to stage 1
we'll need a simple reproduction, maybe in code-sandbox
@Lonli-Lokli does this still happens to you using latest version? If so, can you please share a reproduction on CodeSandbox or a GitHub repo?
Which packages are impacted by your issue?
@graphql-codegen/cli
Describe the bug
I try to generate typings using
@graphql-codegen/cli
(programmatically, usinggenerate
function) withclient
preset error happens:Unable to load preset matching client
If you change
preset
fromclient
toclient-preset
— everything works fineYour Example Website or App
—
Steps to Reproduce the Bug or Issue
@graphql-codegen/cli
and@graphql-codegen/client-preset
both with versions4.0.1
client
:generate
function from@graphql-codegen/cli
packageUnable to load preset matching client
should happenExpected behavior
Error should not happen if you change preset field from
client-preset
toclient
Screenshots or Videos
No response
Platform
graphql
version: 16.7.1@graphql-codegen/*
version(s): 4.0.1Codegen Config File
Additional context
No response