You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If pnpMode is set to "strict" (which is the default value), modules won't be allowed to require packages they don't explicitly list in their own dependencies.
Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo Client usage and allow us to serve you better.
Issue
If pnpMode is set to
"strict"
(which is the default value), modules won't be allowed to require packages they don't explicitly list in their own dependencies.Yarn PnP throws an error because of transportedOptions.ts#L8 import statement which imports
graphql
package, but this package is listed in devDependencies.Suggested change
I suggest moving
graphql
package fromdevDependencies
todependencies
.Workarounds for now:
In
.yarnrc.yml
, either setpnpMode
toloose
or explicitly list
graphql
as a dependencyI hope I’ve understood the problem correctly. Please let me know if there are any inaccuracies.
The text was updated successfully, but these errors were encountered: