Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected] breaks codegen on Windows #2636

Open
adrienharnay opened this issue Jun 3, 2022 · 2 comments
Open

[email protected] breaks codegen on Windows #2636

adrienharnay opened this issue Jun 3, 2022 · 2 comments

Comments

@adrienharnay
Copy link
Contributor

Intended outcome:

Operations are detected in the project like before.

Actual outcome:

After updating apollo-language-server (sub-dep of apollo) from 1.26.8 to 1.26.9, on Windows the following error message appears:

× Generating query files with 'typescript' target
    → No operations or fragments found to generate code for.
    Error: No operations or fragments found to generate code for.

How to reproduce the issue:

Versions

[email protected]
[email protected]

Thanks in advance!

@trevor-scheer
Copy link
Member

trevor-scheer commented Jun 3, 2022

Thanks for the report @adrienharnay. This repo is largely unmaintained (I'm the only one and it's very low on our list of priorities). I would entertain a PR that resolved the problem for you, but it's unlikely I'll get around to fixing this myself.

We don't intend to support codegen going forward. I'll point you to this issue and recommend migrating to graphql-code-generator. #2614

@Zikoat
Copy link

Zikoat commented Nov 14, 2022

You have to change backslashes to forwardslashes in the apollo client:codegen command. This can be done using normalize-path package if you are running this command through js.

See other issue i created: #2667

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants