question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GraphQLDefinitionsFactory generate empty output on windows

See original GitHub issue

I’m submitting a…


[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

After updating 6.2.5 -> 6.4.0 on Windows, factory generate empty schema types

export interface IQuery {}

But on MacOS all its fine.

Expected behavior

Generate correct schema types on both os (Windows, MacOS)

Minimal reproduction of the problem with instructions

  const definitionsFactory = new GraphQLDefinitionsFactory()
  const clientPath = join(process.cwd(), './graphql/types/client.ts')
  await definitionsFactory.generate({
    typePaths: [
      join(process.cwd(), './graphql/core.schema.graphql'),
      join(process.cwd(), './graphql/client.schema.graphql'),
    ],
    path: clientPath,
  })

Environment


Nest version: 6.5.2

 
For Tooling issues:
- Node version: v12.5.0
- Platform: Windows 10

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilmysliwieccommented, Jul 17, 2019

Fixed in 6.4.2! Thanks for reporting 😃

0reactions
lock[bot]commented, Apr 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

nestjs graphql sdl first generated resolver classes should be ...
js GraphQL in SDL first fashion. Each module has its own *.graphql file. I'm generating types using this; import { GraphQLDefinitionsFactory } ...
Read more >
How to use the @nestjs/graphql.GraphQLDefinitionsFactory ...
GraphQLDefinitionsFactory function in @nestjs/graphql ... Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately....
Read more >
GraphQL + TypeScript - A progressive Node.js framework
Harnessing the power of TypeScript & GraphQL. GraphQL is a powerful query language for APIs and a runtime for fulfilling those queries with...
Read more >
GraphQL (TypeScript) Module for Nest Framework (node.js)
A progressive Node.js framework for building efficient and scalable server-side applications. GraphQL is a powerful query language for APIs and a runtime ...
Read more >
Files changed (100) - Renovate Bot Package Diff
+ You could leave this blank if you alread write this in your reproduction ... + **Tip**: Make sure that all of yours...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found