-
Notifications
You must be signed in to change notification settings - Fork 19
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
TypeError: 对象不支持此操作 (object does not support this operation) #25
Comments
This seems to be a limitation of IE11 indeed Source can I use Did you try to configure babel to support IE11 too? Doc I think if configured correctly babel will convert the code to IE11 compatible code. |
Will try that in the future. Thanks to pint this out. |
As I just run into the same issue: IE11 requires now a polyfill for CustomEvent. |
@MangelMaxime Babel will not polyfill CustomEvent. It depends on core-js for polyfill, which has decided not to polyfill it (see here). So because of the change made to Elmish Browser (I believe here ), Navigate.newUrl will not be compatible with IE11 unless a separate polyfill is also imported. cc @et1975 |
@kspeakman thanks for pointing this out, could you recommend a package that polyfills |
Here's what I did. npm install --save custom-event-polyfill Then before Program.mk{...}. Fable.Core.JsInterop.importAll "custom-event-polyfill/polyfill.js" |
@et1975 you can also just copy the function from below link and paste it to your index.html in script block: |
Description
Navigation.newUrl does not work on IE11. I got error says object does dot support this operation.
Below code can be a workaround for me:
Expected and actual results
Should work on IE 11
Related information
The text was updated successfully, but these errors were encountered: