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

Tooltip default export not working #1061

Closed
saravanapandi opened this issue Jul 18, 2023 · 2 comments
Closed

Tooltip default export not working #1061

saravanapandi opened this issue Jul 18, 2023 · 2 comments

Comments

@saravanapandi
Copy link

import styled from 'styled-components';
import {Tooltip} from 'react-tooltip'

export const StyledReactTooltip = styled(Tooltip)background-color: white !important; color: black !important; box-shadow: 0px 2px 20px lightgray; &:after { border-top-color: white !important; };

./node_modules/react-tooltip/dist/react-tooltip.min.mjs
Can't import the named export 'arrow' from non EcmaScript module (only default export is available)

@gabrieljablonski
Copy link
Member

What version of react-scripts are you running? Are you able to upgrade to at least 5.0.1? Please let us know so we can add this solution to our troubleshooting section.

@gabrieljablonski gabrieljablonski changed the title Tool-tip default export not working Tooltip default export not working Jul 28, 2023
@gabrieljablonski
Copy link
Member

We've had confirmation on #1070 that updating your webpack config fixes this.

If you're not using webpack, please reopen with more info.

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

No branches or pull requests

3 participants
@gabrieljablonski @saravanapandi and others