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

IE 11 support #834

Closed
oliviertassinari opened this issue Oct 21, 2019 · 1 comment
Closed

IE 11 support #834

oliviertassinari opened this issue Oct 21, 2019 · 1 comment
Labels
kind: bug Something isn't working

Comments

@oliviertassinari
Copy link

🐛 Bug Report

import { useSpring, animated } from 'react-spring';

Crash with:

Capture d’écran 2019-10-21 à 14 27 21

To Reproduce

I have discovered the issue on https://material-ui.com/components/modal/#transitions.

Expected behavior

I expect the "module" version to only differ from the "main" version by only the import syntax (require vs import).

Link to repro (highly encouraged)

Codesandbox doesn't work on IE 11: codesandbox/codesandbox-client#1187.

Environment

  • react-spring v8.0.27

Related: #248, #552.

@oliviertassinari oliviertassinari added the kind: bug Something isn't working label Oct 21, 2019
@oliviertassinari
Copy link
Author

oliviertassinari commented Oct 21, 2019

The library comes as an es-module compiled for evergreen browsers with the following browserlist config: >1%, not dead, not ie 11, not op_mini all. If you need to support legacy targets or deal with targets that don't support modules, you can use the commonJS export by simply appending .cjs to your imports.

https://www.react-spring.io/

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants