Open alexan opened 4 years ago
this example is not working anymore with latest versions of nx and angular , would be nice if you could update it
any solution to this error?
I have added the following code and it has worked for me in Angular, but with React not
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { ElementsModule } from './lib/elements.module';
platformBrowserDynamic()
.bootstrapModule(ElementsModule)
.catch(err => console.error(err));
platformBrowserDynamic().destroy();
Error:
Uncaught Error: Can't resolve all parameters for ElementsModule: (?).
I tried to rebuilding your example with angular 9 and @nrwl/workspace 9.4.2 I always got this issue
after running
npm run update
in your project the same error appeard in your repo as well. I could only fix this problem by following other examples which are always creating angular applications and compiling them down withngx-build-plus
orcat
to one filehere is the application's angular.json which is used as a library (hack)
I use this build command:
during development:
and add to angular.json angularapp
and reactapp
do you have a working solution in angular 9 which is using a library build?