Skip to content
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

at core-js 3.23.0 version, throw error Cannot redefine property: DEG_PER_RAD。 #1091

Closed
Nowitzki41 opened this issue Jun 14, 2022 · 3 comments
Labels

Comments

@Nowitzki41
Copy link

Nowitzki41 commented Jun 14, 2022

image
we can see the change, why do this?

@Nowitzki41 Nowitzki41 changed the title at core-js 3.23.0 version, throw error Cannot redefine property: DEG_PER_RAD。new code at core-js 3.23.0 version, throw error Cannot redefine property: DEG_PER_RAD。 Jun 14, 2022
@zloirock
Copy link
Owner

Because it should be non-writable non-configurable.

It seems you load multiple copies of core-js - I don't know why it's required.

I forgot about this case, thanks for the report, I'll add a workaround.

@zloirock
Copy link
Owner

Fixed in 3.23.1.

@Nowitzki41
Copy link
Author

Because it should be non-writable non-configurable.

It seems you load multiple copies of core-js - I don't know why it's required.

I forgot about this case, thanks for the report, I'll add a workaround.

Our project uses a micro front-end framework, so there are multiple project resources running the scene at the same time, thanks for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants