Open bigfish opened 4 years ago
Anyone? :)
I'm getting this same error. I'm not sure how to work around this. Did you ever find a solution @bigfish ?
@bigfish I was able to fix this by adding this to /packages/app-angular/tsconfig.json
in the compilerOptions
section:
"paths": {
"@angular/*": [
"node_modules/@angular/*"
],
}
Steps to Repro:
Clone repo
npm install
lerna bootstrap
build component-library
build component-library-angular
'npm start' app-angular
Open http://localhost:4200 in Chrome (80)
See following error in console (twice)
AppComponent.html:3 ERROR NullInjectorError: StaticInjectorError(AppModule)[DemoComponent -> ChangeDetectorRef]: StaticInjectorError(Platform: core)[DemoComponent -> ChangeDetectorRef]: NullInjectorError: No provider for ChangeDetectorRef! at NullInjector.push../node_modules/@angular/core/fesm5/core.js.NullInjector.get (http://localhost:4200/vendor.js:89853:25) at resolveToken (http://localhost:4200/vendor.js:101046:24) at tryResolveToken (http://localhost:4200/vendor.js:100990:16) at StaticInjector.push../node_modules/@angular/core/fesm5/core.js.StaticInjector.get (http://localhost:4200/vendor.js:100892:20) at resolveToken (http://localhost:4200/vendor.js:101046:24) at tryResolveToken (http://localhost:4200/vendor.js:100990:16) at StaticInjector.push../nodemodules/@angular/core/fesm5/core.js.StaticInjector.get (http://localhost:4200/vendor.js:100892:20) at resolveNgModuleDep (http://localhost:4200/vendor.js:109362:29) at NgModuleRef.push../nodemodules/@angular/core/fesm5/core.js.NgModuleRef.get (http://localhost:4200/vendor.js:110033:16) at resolveDep (http://localhost:4200/vendor.js:110404:45)
I have looked into related issues, but their suggested solutions either didn't work, or the issue was closed without solution.