-
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
Angular v8 - import 'web-animations-js' polyfill breaks the app #14518
Comments
… polyfill Previous versions rely on `this` which breaks differential loading since it's `undefined` when using script tags with type module. Fixes #14518
Why is this issue closed? The error still exists in v8.0.0. If i import web-animations-js, the application breaks. |
Hi, for the time being kindly update the dependency version to That said, if you updated to Angular 8 via Re-opening until we get this solved. |
This comment has been minimized.
This comment has been minimized.
I believe #208 has been merged / released. |
@Senneseph It is merged but not yet released. Latest version is still 2.3.1 from 2 years ago. |
Just had a chat with the maintainers. They are working on a release in the next day or two. |
Thank you for the update |
…he app This commit addresses issue #152 not to break the app, and is a workaround until angular/angular-cli#14518 is fixed.
…he app This commit addresses issue #152 not to break the app, and is a workaround until angular/angular-cli#14518 is fixed.
for those looking for a workaround to import libraries that are not fixed: {
"projects": {
"my-project": {
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"scripts": [
"node_modules/some-library/some-library.min.js"
] this will be bundled in <script src="scripts.js"></script> without |
It's also important to note that unless the application is actually using the |
"working on a release", they said... "next day or two", they said.. |
Thanks @alan-agius4 I didn't know I don't need to import web-animations, I just thought if I would like to support IE/Edge or Safari I had to import it... Now I can remove it from the project |
This issue has been fixed in @angularcli@8.0.3 A heads up to anyone using igniteui-angular npm package... You will need to install [email protected] and [email protected] as npm runtime dependencies inside your Angular Project |
I also met this issue, so I did uninstall web-animations.js and rebuild and published. Thus this was sorted out. But I am not sure it's the exact solution for this, as web-animations.js is required for IE and Safari browsers, according to the google. |
It’s generally the correct solution. The polyfill is only needed for those browsers if the “AnimationBuilder” class is used within the project. Typical animation use does not require it. |
web-animations-js published 2.3.2 which includes the fix |
The |
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. |
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, the previous version in which this bug was not present was Angular v7Description
If I add
import 'web-animations-js';
intopolyfills.ts
, in production it breaks the app.🔬 Minimal Reproduction
npm install --save web-animations-js
import 'web-animations-js';
intopolyfills.ts
ng build --prod
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
If I import zone before web-animation-js, the app works, but the first error is still present.
The text was updated successfully, but these errors were encountered: