Riccardo
Riccardo

Reputation: 135

Angular error StaticInjectorError CdkConnectedOverlay overlay

starting the environment with the command ng serve everything works without errors, but doing a test with the command ng serve --aot or ng serve --prod (simulating the production version) comes out this error when you open the modal:

Error

This is my app.module.ts:

https://codeshare.io/5PKywo

I did a lot of research but I still have not found a solution.


I solved.

The problem was that the version of this graphic component was not updated (ng-zorro-antd), now I've updated it to the latest version and it works without errors.

Thanks anyway!

Upvotes: 0

Views: 946

Answers (2)

Riccardo
Riccardo

Reputation: 135

I solved.

The problem was that the version of this graphic component was not updated (ng-zorro-antd), now I've updated it to the latest version and it works without errors.

Thanks anyway!

Upvotes: 2

Shantanu
Shantanu

Reputation: 3513

Remove OVERLAY_PROVIDERS from providers. It's deprecated. Only use OverlayModule in imports.

Upvotes: 0

Related Questions