question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular 9 with IVY and AOT

See original GitHub issue

Is 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:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
luisfpgcommented, Feb 28, 2020

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.

0reactions
richardsengerscommented, Mar 18, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found