Closed TurnsOut closed 4 years ago
This seems to be a regression from core-js. Hereβs an open issue https://github.com/zloirock/core-js/issues/751
The issue seems to have been fixed - https://github.com/zloirock/core-js/issues/741#event-2921184049
Cannot confirm that this is fixed.
Updated angular-cli to 9.0.3
Repro mentioned above still creates a project with the issue. Specifically installing core-js@3.6.4 and including in polyfill does not change behaviour.
@TurnsOut afaics @angular-devkit/build-angular
uses core-js@3.6.0
(see node_modules/@angular-devkit/build-angular/node_modules/core-js/package.json
) even though i have core-js@3.6.4
in my app's package.json.
@alan-agius4 any chance we can try a new version of the cli with core-js > 3.6.0 to see if that fixes this problem?
I can verify this on angular.io btw:
"tick".split(/^|\s+/)
@jpzwarte yes, i can see from 'npm list | grep core-js' that there is core-js 3.6.0, core-js-compat 3.6.4, as well as core-js 3.6.4.
I don't know that construct. Should i be doing something different?
Tried this locally and it seems that indeed updating to 3.6.4 solved the issue.
If you are using yarn
you can add the below in your package.json
as test/temp workaround
"resolutions": {
"core-js": "3.6.4"
},
@alan-agius4 i'm confused: https://github.com/angular/angular-cli/pull/16655/files CLI already uses 3.6.4???
@jpzwarte, that PR was only merged to master. Version 9.0.x is on a different branch which still uses core-js 3.6.0
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
π Bug report
Is this a regression?
This used to work in angular8.
Description
yields different results in chrome and ie.
I would expect results to be the same in chrome and ie.
π¬ Minimal Reproduction
π₯ Exception or Error
π Your Environment
edit 24/02/2020: updated to
Anything else relevant?
When debugging i see that polyfill https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/es.string.split.js is already in use. Adding it again in polyfills.ts doesn't make a difference.
Unrelated: I'm migrating an angular8 app with d3 to angular9, d3 depends on this for registering callbacks. https://github.com/d3/d3-selection/blob/master/src/selection/on.js#L35