-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
react-event-listener incompatibility >=0.5.6 #11550
Comments
Please provide a full reproduction test case. This would help a lot 👷 . It's working fine in https://codesandbox.io/s/5v5nl0x56k. |
I can't seem to get it working on codesandbox. Here's a git repo. Hope that helps! git clone https://github.com/Thomas101/material-ui-examples.git
cd material-ui-examples/11550-react-event-listener
npm install
npm start
open index.html |
@TrySound Any idea? {
"name": "react-event-listener",
"version": "0.5.8",
"description": "A React component that allow to bind events on the global scope",
"main": "dist/react-event-listener.cjs.js",
- "module": "dist/react-event-listener.esm.js",
"scripts": {
`` |
@oliviertassinari The problem is probably happens because of mixing default and named exports. I believe that breaking change with |
Just remove that line for 0.5.9. |
Wow that's some stellar fixing :). Confirm fixed. Thanks very much! |
Expected Behavior
Install
@material-ui/core 1.0.0
from npm it pulls inreact-event-listener 0.5.8
as per dependency of^0.5.1
.Create a tooltip as so, tooltip should render...
Current Behavior
Throws an error.
A little more digging reveals that the import of
react-event-listener
comes back with a nesteddefault
Forcing an install of
react-event-listener 0.5.5
doesn't display this issue. The import comes in as expectedYour Environment
The text was updated successfully, but these errors were encountered: