dotansimha/graphql-code-generator-community
Unable to load typescript-apollo-angular in codesandbox while attempting reproduce bug: serviceProvidedInRoot: false ignored
开放
#139 创建于 2021年7月15日
help wanted
仓库指标
- 星标
- (136 个星标)
- PR 合并指标
- (平均合并 1天 11小时) (30 天内合并 28 个 PR)
描述
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
- graphql-codegen should compile and run in the codesandbox instance
- Angular services generated by graphql-codegen should be generated with
@Injectable()whenserviceProvidedInRoot: false
Observed behaviour
- graphql-codegen does not finish compiling because of error message: ``
- Angular services are generated with
@Injectable({ providedIn: 'root' })even whenserviceProvidedInRoot: false