eddeee888 / graphql-code-generator-plugins

List of GraphQL Code Generator plugins that complements the official plugins.
MIT License
50 stars 12 forks source link

No Output files generated #74

Closed Sandeep-Malhotra closed 1 year ago

Sandeep-Malhotra commented 1 year ago

I am following the steps as described here

Codegen.ts

image

Folder Structure

image

Package.json file

image

Console Output ( No errors but no output files are generated)

image

Console with verbose

image

Kindly let me know why output files are not generated

eddeee888 commented 1 year ago

Hello 👋 Can you try changing /src/schema to src/schema in your codegen.ts, please? :)

/src/schema generate the files into /src/schema directory src/schema generates the files into src/schema directory relative to your current working directory

Sandeep-Malhotra commented 1 year ago

Thanks for your reply. Still the same issue

image

eddeee888 commented 1 year ago

Do you have a repo I could clone to look at? :)

Alternatively, could you try using this forking this Codesanbox template and reproduce this bug there?

Would be good to know the following too:

Sandeep-Malhotra commented 1 year ago

Here is the link for the source code ( Unfortunately code is still not working for me)

Source code link https://github.com/Sandeep-Malhotra/test-graphql-server-with-preset

eddeee888 commented 1 year ago

Hmm that's odd 🤔 I'm using your repo and it works.

Screen Shot 2023-02-22 at 9 35 31 pm


Can you provide the following please:

Sandeep-Malhotra commented 1 year ago

Below are the details Node Version v19.6.0 OS Windows Running in the VS Code Git Bash Terminal Also, I have installed NVM and its version is 1.1.9

Thanks

eddeee888 commented 1 year ago

Thank you! I know there's an issue with WIndows atm. Some people report the preset works fine with Windows WSL.

I'll set up a Windows machine some time this week to test. Thanks!

Sandeep-Malhotra commented 1 year ago

Appreciate your assistance. Thanks once again

eddeee888 commented 1 year ago

Hi @Sandeep-Malhotra,

Can you try this alpha version that should support Windows path please:

yarn add -D @eddeee888/gcg-typescript-resolver-files@pr67-run159-1

Then run codegen as usual:

yarn graphql-codegen
Sandeep-Malhotra commented 1 year ago

Sure will try and update you

eddeee888 commented 1 year ago

Looks like Windows issues have been resolved in the latest versions. I'll close this for now. If the problem persists, please open another issue.