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

IE11下提示:Cannot redefine non-configurable property 'currentScript' #1460

Closed
SamirGuo opened this issue May 21, 2021 · 2 comments · Fixed by #1470
Closed

IE11下提示:Cannot redefine non-configurable property 'currentScript' #1460

SamirGuo opened this issue May 21, 2021 · 2 comments · Fixed by #1470
Labels
enhancement New feature or request

Comments

@SamirGuo
Copy link

What happens?

在IE11下,如果在qiankun执行前引入过currentScript的polyfill,则会出现:Cannot redefine non-configurable property 'currentScript'

Object.defineProperty(document, 'currentScript', {

Mini Showcase Repository(REQUIRED)

`
if (!(('currentScript' in document))) {
Object.defineProperty(document, 'currentScript', get: function() { ... });
}
import { registerMicroApps, start } from "qiankun";

...
start();
`

Context

  • qiankun Version: 2.4.0
  • Platform Version: Windows 10
  • Browser Version: IE 11(正式版本) (64 位)
@kuitos
Copy link
Member

kuitos commented May 22, 2021

用的哪个 polyfill,来个链接

@kuitos kuitos added the enhancement New feature or request label May 22, 2021
@SamirGuo
Copy link
Author

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants