首页 > 解决方案 > 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!

标签: angularangular-materialoverlay

解决方案


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!


推荐阅读