[animations] `fesm2015` entry is actually not ES2015 compatible due to `Object.fromEntries` usage
See original GitHub issueWhich @angular/* package(s) are the source of the bug?
animations
Is this a regression?
No
Description
I imagine fesm2015
should be ES2015 fully compatible, but Object.fromEntries
is used in @angular/animations
which is actually an ES2019 feature.
Please provide a link to a minimal reproduction of the bug
https://unpkg.com/browse/@angular/animations@14.1.3/fesm2015/browser.mjs
Please provide the exception or error you saw
core.mjs:7626 ERROR TypeError: Object.fromEntries is not a function
at keyframes.forEach.frame (browser.mjs:4516)
at Array.forEach (<anonymous>)
at WebAnimationsPlayer._convertKeyframesToObject (browser.mjs:4515)
at WebAnimationsPlayer._triggerWebAnimation (browser.mjs:4524)
at WebAnimationsPlayer._buildPlayer (browser.mjs:4500)
at WebAnimationsPlayer.play (browser.mjs:4538)
at TransitionAnimationPlayer.play (browser.mjs:4099)
at rootPlayers.forEach.player (browser.mjs:3883)
at Array.forEach (<anonymous>)
at TransitionAnimationEngine._flushAnimations (browser.mjs:3876)
at TransitionAnimationEngine.flush (browser.mjs:3503)
at InjectableAnimationEngine.flush (browser.mjs:4350)
at _zone.runOutsideAngular (animations.mjs:213)
at _ZoneDelegate.invoke (zone.js:372)
at Zone.run (zone.js:134)
Please provide the environment you discovered this bug in (run ng version
)
No response
Anything else?
No response
Issue Analytics
- State:
- Created a year ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Object.fromEntries() - JavaScript - MDN Web Docs
fromEntries () method takes a list of key-value pairs and returns a new object whose properties are given by those entries. The iterable...
Read more >Add ES2019 Object.fromEntries function · Issue #30933 - GitHub
I can't get it to find it as Property 'fromEntries' does not exist on type 'ObjectConstructor'. What versions of TS and NODEJS should...
Read more >IE11 compatible Object.fromEntries - javascript - Stack Overflow
@evolutionxbox, let's say that I'm not using node_modules, but this is a $(document).ready(function() { script with an $.ajax({}) call inside a ...
Read more >JavaScript Object.fromEntries() | SamanthaMing.com
Object.fromEntries is the inverse of Object.entries. It will take key-value pairs and return a new object. You can use it on Arrays and...
Read more >Convert JavaScript Maps to Objects - YouTube
In this tutorial I'll be showing you how to use the Object. fromEntries () function in JavaScript which allows you to convert an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Correct, only the latest 2 versions of Chrome are officially supported. The current version of Chrome is 105, so 65 is way old at this point.
@JoostK I just had the issue too on Chrome v65, but I guess it’s not officially supported anymore by Angular (I didn’t check).