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

Doesn't work with typescript? #55

Open
chrisstpierre opened this issue Mar 19, 2020 · 1 comment
Open

Doesn't work with typescript? #55

chrisstpierre opened this issue Mar 19, 2020 · 1 comment

Comments

@chrisstpierre
Copy link

When using with Typescript:

import { AwesomeButton } from 'react-awesome-button'

I get the following error: Module '"react-awesome-button"' has no exported member 'AwesomeButton'. Did you mean to use 'import AwesomeButton from "react-awesome-button"' instead?ts(2614)

@cmrfrd
Copy link

cmrfrd commented May 24, 2020

I just used

// @ts-ignore
import { AwesomeButton } from 'react-awesome-button'

and

...
  "rules": {
    "@typescript-eslint/ban-ts-ignore": "off"
  }
...

in my eslint to get around this

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

No branches or pull requests

2 participants