Slate: Can not open slatejs example in Edge browser

Created on 2 Jan 2020  Â·  4Comments  Â·  Source: ianstormtaylor/slate

Can not open slatejs example in Edge browser.

image

âš‘ needs info

Most helpful comment

This is because Slate-React is being bundled with target TSconfig set to esnext. You may want to change that to ES6 - this way object spread in Editable component will get transpiled properly.

Editor is still kind of broken after that, though. I'm looking for polyfills necessary to make it usable for now.

All 4 comments

This is because Slate-React is being bundled with target TSconfig set to esnext. You may want to change that to ES6 - this way object spread in Editable component will get transpiled properly.

Editor is still kind of broken after that, though. I'm looking for polyfills necessary to make it usable for now.

does it work on the chromium based edge? I suspect the legacy edge is unlikely to be supported out of the box

@DamareYoh You're quick: I think the "legacy" non-chromium Edge has only been "legacy" for a couple of hours! It would still be nice to get this fixed, if possible, for people who like to support at least the latest two versions of Chrome, Firefox and Edge :)

Update: The chromium-based Edge works as expected. However, it still seems to be in beta.

It is possible to change in tsconfig from esnext to es6?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gorillatron picture gorillatron  Â·  3Comments

chriserickson picture chriserickson  Â·  3Comments

ezakto picture ezakto  Â·  3Comments

chrpeter picture chrpeter  Â·  3Comments

AlexeiAndreev picture AlexeiAndreev  Â·  3Comments