Angular 9 with IVY and AOT
See original GitHub issueIs this library suppose to work with Angular 9 and ivy with aot? I keep getting errors when ivy enabled with aot
node_modules/{project}/dist/api.module.d.ts:6:22 - error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class.
The generated ApiModule looks like this:
import { ModuleWithProviders } from '@angular/core';
import { ApiConfigurationInterface } from './api-configuration';
/**
* Provider for all Api services, plus ApiConfiguration
*/
export declare class ApiModule {
static forRoot(customParams: ApiConfigurationInterface): ModuleWithProviders<ApiModule>;
}
Am I doin gsomething wrong or is this library not yet Ivy ready?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Angular Ivy
With the version 9 release of Angular, the new compiler and runtime instructions are ... AOT compilation with Ivy is faster and should...
Read more >All About Angular Engine Ivy in 5 mins
The build and rebuild time enhancement in Ivy, empowers AOT to offer an improved developer experience. In Angular 9, AOT compilation is enabled ......
Read more >A look at major features in the Angular Ivy version 9 release
The Angular team has a View Engine-to-Ivy migration plan which recommends only publishing AOT-compiled View Engine-compatible libraries for ...
Read more >What Is Angular Ivy and Why Is It Awesome? - Okta Developer
The Angular AOT compiler converts your Angular HTML and TypeScript code into efficient JavaScript code during the build phase before the browser ...
Read more >Angular 9 new features | part 1 [Most asked Angular Interview Q ]
So what's new in Angular 9 ? What is AOT in Angular or Ivy in Angular 9 ? In this new update, all...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The library hasn’t been tested with Angular 9. I don’t have much time to work on ng-swagger-gen nowadays, but I expect to find some time in the next couple of weeks.
Thanks for the feedback. Maybe it’s because I’ve upgraded from angular 8. On a new Angular 9 project I don’t have the issue
@GeorgeKnap unfortunately … i’ve already tried it, but without any luck.
I’m going to start a new Angular 9 project and copy paste my components.