-
Notifications
You must be signed in to change notification settings - Fork 12k
Angular 8 Karma tests on PhantomJS and IE11 not working #14691
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
Comments
Duplicate of #14455 |
I think it's not a duplicate. I have changed target to 'es5', so serve works well for me. |
Sorry wrong issue. Duplicate of #14618 |
Can confirm that this is fixed now in versions:
|
But your polyfills are still present in polyfills.ts? |
Upgraded to these versions and I still receive an error when using PhantomJS with no core js polyfills: 8.0.3 was released recently too. I upgraded to that but still no luck. |
For anyone who's struggling with running PhantomJS tests with Angular 8 locally and/or in a build pipeline, this worked for me:
EDIT: This workaround isn't the best solution either. By changing the target attribute to |
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. |
After upgrade to Angular 8 I can't get tests working on PhantomJS and IE11 due to missing polyfils.
As I understand, polyfills are managed by Angular CLI, so during upgrade these lines are removed:
When running tests on IE/PhantomJS I get typical missing polyfils errors like:
However, after returning now missing lines, I get errors about ZoneJS Promise being overwritten:
I'm not sure if this is cli bug, or if I am missing something, but I would really appreciate the help!
My
ng --versions
:The text was updated successfully, but these errors were encountered: