I updated this stackblitz https://stackblitz.com/edit/template-driven-form-demo-bnezpz?file=app/user-form/user-form.component.ts
to the latest angular version by pressing the refresh button in the dependencies tab.
The result is that it keeps asking me to install core-js, but it doesn't matter how many times I press install, it just keeps popping up and asking me to install core-js. What's wrong here?
You can update the version manually by installing [email protected] .
To update to the next beta or pre-release version, use the --next option. We recommend that you always update to the latest patch version, as it contains fixes we released since the initial major release. For example, use the following command to take the latest 10. x.x version and use that to update.
StackBlitz supports Angular CLI commands in the user interface.
Run ng update @angular/core @angular/cli which should bring you to version 10 of Angular. New projects use the filename . browserslistrc instead of browserslist . ng update will migrate you automatically.
There seems to be some incompatibility in package version. Uninstall the core-js:3.0.0.
is not working. You can update the version manually by installing [email protected]
.
Tried installing [email protected]
in local, It seems like there are some breaking changes in the latest core-js
package. Previously (version < 3.0.0
), the javascript
specific things were in sub-folders in core-js (like core-js/es6/symbol, core-js/es7/reflect
).
From version 3.0.0
, all these things have been moved to core-js/es/*
. Various angular packages depend on the previous versions and are not able to find the directories at right place, thus you are getting the error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With