dotansimha / dotansimha/graphql-code-generator-community

Unable to load typescript-apollo-angular in codesandbox while attempting reproduce bug: serviceProvidedInRoot: false ignored

Open
#139 2 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
137
Forks
195
Avg merge
6h 20m
Merged PRs (30d)
16

Description

## Bug Description
Unable to utilise codesandbox to reproduce a different bug. Any error is presented:
Unable to find template plugin matching 'typescript-apollo-angular'
The plugin has been selected and loaded from the package.json file.

The original bug I was attempting to reproduce, was that the config option: `serviceProvidedInRoot: false` is ignored by graphql-codegen

## To Reproduce
Please see working demonstration of the bug here: https://codesandbox.io/s/agitated-fog-1j6kl?file=/codegen.yml

## Expected Behaviour

1. graphql-codegen should compile and run in the codesandbox instance
2. Angular services generated by graphql-codegen should be generated with `@Injectable()` when `serviceProvidedInRoot: false`

## Observed behaviour

1. graphql-codegen does not finish compiling because of error message: ``
2. Angular services are generated with `@Injectable({ providedIn: 'root' })` even when `serviceProvidedInRoot: false`

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.