-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any chance to get support on Angular 9? #24
Comments
|
Facing in same error. "angularCompilerOptions": {
"enableIvy": false,
} |
@HollyLiang I have same error with Angular 8 |
@a-katsarov Hi, I solved this error, in Angular 8. was that the modulePath address was incorrect.
and I changed it to:
|
Ivy doesn't emit factory files, instead factories are embedded as static property. You might need to change the following lines Exports and remove factory-path and NgFactory. Export the module\component. Check Ivy Compiler Model for more details. There are couple of ways to create an instance of a component: More safe way is to add component as entry, and use component factory resolver to get it through the component type, that you can provide to module providers. (Update, no need for entry component in NG9) Your plugin doesn't need to withhold module, instead it can export component, having exported type, you can use CFR. I was able to achieve Ivy Module\Component through CFR and ɵrenderComponent, you may need some more readings on how compiled chunks got changed in Ivy. Hope this help. |
Do you have an example of this that you can share? It seems like a much more reliable mechanism than using |
I got some time to fork and migrate both workspace and builder to Angular 9. |
Very nice, thank you |
Really happy to be part of this thread and to see the solution for this issue. |
@jfgouda Were you able to build shared library in Angular 8 with ivy enabled and use that in other projects ? I was still getting the error in the same, other projects work fine. |
Hi @jfgouda, I used your fork project and I can compile plugin, but the main project to load plugin is not working. Could you please fix this issue? And error:
|
Hi @jfgouda , do you have any update for your project? |
Do you have a branch compatible with Angular 9?
The text was updated successfully, but these errors were encountered: