Skip to content

Commit

Permalink
fix(example): with-typescript-graphql graphql-let package migrate (ve…
Browse files Browse the repository at this point in the history
…rcel#29996)

## Bug

- Partially fixes vercel#25854 
- Badly specified package dependency version (`graphql-let`). The new major version required manual migration. As specified [here](https://github.com/piglovesyou/graphql-let/releases/tag/v0.18.0).
- In `lib/resolvers.ts`
```Module '"*.graphqls"' has no exported member 'MutationResolvers'. Did you mean to use 'import MutationResolvers from "*.graphqls"' instead?ts(2614)```


## Fixes

- Migrate as described in migration guide for `graphql-let` above.
- Update some npm packages along the way.
  • Loading branch information
Cheprer authored and natew committed Feb 16, 2022
1 parent 3bc0176 commit 2fb5033
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
3 changes: 2 additions & 1 deletion examples/with-typescript-graphql/.babelrc
@@ -1,3 +1,4 @@
{
"presets": ["next/babel"]
"presets": ["next/babel"],
"plugins": ["graphql-let/babel"]
}
2 changes: 1 addition & 1 deletion examples/with-typescript-graphql/.gitignore
Expand Up @@ -34,7 +34,7 @@ yarn-error.log*
.vercel

# graphql-let
__generated__
.cache
*.graphql.d.ts
*.graphqls.d.ts
.cache
20 changes: 11 additions & 9 deletions examples/with-typescript-graphql/package.json
Expand Up @@ -19,20 +19,22 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"@graphql-codegen/cli": "^1.17.8",
"@graphql-codegen/import-types-preset": "^2.1.8",
"@graphql-codegen/plugin-helpers": "^1.17.8",
"@graphql-codegen/typescript": "^1.17.8",
"@graphql-codegen/typescript-operations": "^1.17.8",
"@graphql-codegen/typescript-react-apollo": "^2.0.6",
"@graphql-codegen/typescript-resolvers": "^1.17.8",
"@graphql-codegen/cli": "^2.2.1",
"@graphql-codegen/import-types-preset": "^2.1.6",
"@graphql-codegen/plugin-helpers": "^2.2.0",
"@graphql-codegen/typescript": "^2.2.4",
"@graphql-codegen/typescript-operations": "^2.1.8",
"@graphql-codegen/typescript-react-apollo": "^3.1.6",
"@graphql-codegen/typescript-resolvers": "^2.3.2",
"@types/react": "^16.9.46",
"@types/react-dom": "^16.9.8",
"@types/react-test-renderer": "^17.0.1",
"babel-jest": "26.3.0",
"@types/jest": "^27.0.2",
"@types/mocha": "^9.0.0",
"babel-jest": "27.2.5",
"graphql-let": "^0.18.6",
"graphql-tag": "2.11.0",
"jest": "26.4.0",
"jest": "^27.2.5",
"react-test-renderer": "^17.0.1",
"typescript": "^4.5.4",
"yaml-loader": "0.6.0"
Expand Down

0 comments on commit 2fb5033

Please sign in to comment.