dotansimha / dotansimha/graphql-code-generator

`--watch` doesn't work for multi-project

Open
#9,233 7 comments 3 reactions 0 assignees View on GitHub
kind/bug stage/5-alpha-release-testing
Dominant language
TypeScript
Stars
11.3k
Forks
1.4k
Avg merge
1d 1h
Merged PRs (30d)
23

Description

### Which packages are impacted by your issue?

@graphql-codegen/cli

### Describe the bug

`--watch` flag doesn't work for multi-project config. It throws following error:
```
[ProjectNotFoundError: Project 'default' not found]
```

### Your Example Website or App

https://stackblitz.com/edit/github-kf5dtb?file=codegen.ts&view=editor

### Steps to Reproduce the Bug or Issue

1. Make a multi-project config
2. Run `graphql-codegen` with `--watch` config
3. Change the config file

### Expected behavior

The `--watch` flag whould work

### Screenshots or Videos

_No response_

### Platform

- OS: [e.g. macOS, Windows, Linux]
- NodeJS: [e.g. 18.5.0]
- `graphql` version: [e.g. 16.3.0]
- `@graphql-codegen/*` version(s): [e.g. 2.6.2]

### Codegen Config File

_No response_

### Additional context

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.