'Uncaught Error: Can't resolve all parameters for' runtime error when upgrading from Angular 4 to 5.0.1

前端 未结 3 703
后悔当初
后悔当初 2020-12-19 17:59

This is fine in Angular 4.x, just not Angular 5.0.1. This project was generated with Angular CLI.

compiler.js:466 Uncaught Error: Can\'t resolve all paramet         


        
3条回答
  •  借酒劲吻你
    2020-12-19 18:39

    In my case, for Angular 6.1 migration, it was a missing:

    import "reflect-metadata";
    import "zone.js";
    

    inside the bootfile.

提交回复
热议问题