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

createRoot uses an unsupported syntax for IE11 #4371

Closed
toml-pcentra opened this issue May 5, 2024 · 0 comments · Fixed by #4372
Closed

createRoot uses an unsupported syntax for IE11 #4371

toml-pcentra opened this issue May 5, 2024 · 0 comments · Fixed by #4372

Comments

@toml-pcentra
Copy link

  • [ X ] Check if updating to the latest Preact version resolves the issue

Describe the bug
The createRoot uses the "method definition" syntax which is not supported in IE11:

preact/compat/client.js

Lines 3 to 12 in d18ac9f

function createRoot(container) {
return {
render(children) {
render(children, container);
},
unmount() {
unmountComponentAtNode(container);
}
};
}

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

Successfully merging a pull request may close this issue.

1 participant