Angular 5 Upgrade NullInjectorError: No provider for InjectionToken LocaleId
问题 I have an Angular 4 app that I have upgraded to Angular 5 with CLI 1.5.4. I also have a shared library using npm link. After upgrading I had to add this to my tsconfig.app.json to get the CLI building again: "include": [ "./**/*.ts", "../node_modules/my-lib/src/**/*.ts", "../node_modules/my-lib/index.ts", "../node_modules/my-lib/ng2-icad-cf.ts" ], After a successful build, I am presented with the following error when visiting localhost:4200 NullInjectorError: No provider for InjectionToken