apollographql / apollographql/apollo-tooling

apollo-language-server@1.26.9 breaks codegen on Windows

Open
#2,636 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3k
Forks
460
PR merge metrics
No merged PRs in 30d

Description

**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:**

- Install `apollo@2.33.11` and `apollo-language-server@1.26.9`
- Try a codegen
- The mentioned error will appear

**Versions**

apollo@2.33.11
apollo-language-server@1.26.9

Thanks in advance!

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with apollo@2.33.11 and apollo-language-server@1.26.9 on Windows, then compare it with 1.26.8 while tracing the TypeScript-target codegen entry point. Done means the existing operations are detected and TypeScript query files are generated without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.