Next.js: graphql-let Error: Fails to generate .d.ts.

Created on 5 Apr 2020  路  2Comments  路  Source: vercel/next.js

Bug report

Describe the bug

When trying to run with-typescript-graphql example with the command yarn dev, I get the following error:

yarn run v1.22.4
$ yarn codegen && next
$ graphql-let
[ graphql-let ] Generating .d.ts...
[ graphql-let ] Fails to generate .d.ts.Error: Fails to generate .d.ts.
    at Object.genDts (/home/rounak/Projects/with-typescript-graphql-app/node_modules/graphql-let/dist/lib/dts.js:45:15)
    at processDtsForCodegenContext (/home/rounak/Projects/with-typescript-graphql-app/node_modules/graphql-let/dist/lib/full-generate.js:73:31)
    at Object.fullGenerate [as default] (/home/rounak/Projects/with-typescript-graphql-app/node_modules/graphql-let/dist/lib/full-generate.js:87:15)
    at async gen (/home/rounak/Projects/with-typescript-graphql-app/node_modules/graphql-let/dist/gen.js:15:28)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

To Reproduce

yarn create next-app --example with-typescript-graphql with-typescript-graphql-app
yarn
yarn dev

Expected behavior

After running yarn dev, the app should be available at localhost.

System information

  • OS: Ubuntu
  • Version of Next.js: latest (mentioned in package.json)
good first issue

Most helpful comment

Fixed by #11707. Please let us know if the issue persists

All 2 comments

Fixed by #11707. Please let us know if the issue persists

This works now. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

havefive picture havefive  路  3Comments

rauchg picture rauchg  路  3Comments

ghost picture ghost  路  3Comments

formula349 picture formula349  路  3Comments

swrdfish picture swrdfish  路  3Comments