TypeError: o.Subject is not a constructor - Angular 11
TypeError: o.Subject is not a constructor - Angular 11
- 我已将 Angular 版本从 5.2 升级到 11.2
- 在 BUILD 之后出现错误:
TypeError: o.Subject is not a constructor
3. In development mode I am not getting any error, if I set "aot": false
in angular.json file then it's working fine, here are my rxjs packages:
"rxjs": "^6.6.7",
"rxjs-compat": "^6.0.0-rc.0",
"rxjs-tslint": "^0.1.8",
我已经将@angular/cdk & @angular/material升级到最新版本,在此之前主题来了来自这些库的旧版本。
因此,将所有库升级为 Angular 版本。
- 我已将 Angular 版本从 5.2 升级到 11.2
- 在 BUILD 之后出现错误:
TypeError: o.Subject is not a constructor 3. In development mode I am not getting any error, if I set
"aot": false
in angular.json file then it's working fine, here are my rxjs packages:
"rxjs": "^6.6.7",
"rxjs-compat": "^6.0.0-rc.0",
"rxjs-tslint": "^0.1.8",
我已经将@angular/cdk & @angular/material升级到最新版本,在此之前主题来了来自这些库的旧版本。
因此,将所有库升级为 Angular 版本。