react-awesome-button icon indicating copy to clipboard operation
react-awesome-button copied to clipboard

Doesn't work with typescript?

Open chrisstpierre opened this issue 5 years ago • 1 comments

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)

chrisstpierre avatar Mar 19 '20 20:03 chrisstpierre

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

cmrfrd avatar May 24 '20 04:05 cmrfrd