-
Notifications
You must be signed in to change notification settings - Fork 12k
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
entryComponents required in tests #17110
Comments
I have the same problems!!! |
The entryComponents in question are all present in the |
Hi @pburkindine, could you please provide a minimum repro (in a form of GitHub repo), so that we can perform further investigation? Thank you. |
Hello! I have a example:
If I remove next line test ERROR! Thank! |
Hi @pacocom, thanks for additional information. Could you please create a GitHub repo with a minimum possible repro (I assume some of the modules in I also want to confirm if you use Ivy to reproduce the problem (looks like the error message was produced by View Engine)? Thank you. |
@AndrewKushnir I have not had time this work week but I will try to repro this weekend; I wanted to make sure it was on the books |
Hi @AndrewKushnir, I guess I have a similar problem here. The app works ok without entryComponents, but tests don't. https://github.com/archasek/angular-playground Crucial line: https://github.com/archasek/angular-playground/blob/master/src/app/app.component.spec.ts#L32 Just run tests with Thanks |
Hi @archasek, thanks for the repository with the setup that triggers the issue. I checked error logs and found out that ViewEngine is used to run the tests and that's the reason why I'm transferring this issue to Angular CLI repo for further investigation. Thank you. |
Hi, the problem with Jest is that it doesn't use You will need to run "postinstall": "ngcc --properties main" |
@alan-agius4 thanks so much, works like a charm for a demo repo. Btw. for those who are experiencing errors with |
@alan-agius4 UPDATE: I changed the postinstall to |
@archasek thanks for the tip on the $localize setup issue which was also required to get things going |
@alan-agius4 actually I spoke too soon, simple tests that e.g. a destroy$ subject is stopping some ngrx pipe fail when using the main/UMD target which weren't failing before |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
We are having to declare entryComponents in tests after upgrading to A9; the documentation indicates this should not be necessary
The text was updated successfully, but these errors were encountered: