I'm submitting a ... (check one with "x")
[ *] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
Current behavior
When compiling a Ionic2 application for AOT, the ngc compiler gives me this error.
ngc: Error: Error at C:/dev/ecdt-mobile/.tmp/app/app.module.ngfactory.ts:177:20: Generic type 'BaseService<T>' requires 1 type argument(s).
Expected behavior
It should compile. I have created an angular2 repro (without ionic) and it compiles fine. HOWEVER the generated code is underline in my IDE and I believe this is not right:
__BaseService_76:import46.BaseService;
it should be something like:
__BaseService_76:import46.BaseService<any>;
Minimal reproduction of the problem with instructions
The repro project is here: https://github.com/graphicsxp/angular2
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Windows, npm
- Angular version: 2.0.X
2.0
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
chrome
- Language: [all | TypeScript X.X | ES6/7 | ES5]
typescript 2.0
- Node (for AoT issues):
node --version =
v4.5.0
I'm submitting a ... (check one with "x")
Current behavior
When compiling a Ionic2 application for AOT, the ngc compiler gives me this error.
ngc: Error: Error at C:/dev/ecdt-mobile/.tmp/app/app.module.ngfactory.ts:177:20: Generic type 'BaseService<T>' requires 1 type argument(s).Expected behavior
It should compile. I have created an angular2 repro (without ionic) and it compiles fine. HOWEVER the generated code is underline in my IDE and I believe this is not right:
it should be something like:
__BaseService_76:import46.BaseService<any>;Minimal reproduction of the problem with instructions
The repro project is here: https://github.com/graphicsxp/angular2
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Windows, npm
typescript 2.0
node --version=v4.5.0