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

react-awesome-button\src\components\AwesomeButton\index.js: Unexpected token (20:24)

Open DerikDantas opened this issue 4 years ago • 4 comments

DerikDantas avatar Apr 01 '20 16:04 DerikDantas

I have the same issue

joshuawootonn avatar Apr 04 '20 23:04 joshuawootonn

I have the same issue. I'm using typescript.

alicercedigital avatar May 04 '20 17:05 alicercedigital

The same problem here. Does anyone know how to fix it?

GustavoCarvallo avatar May 09 '20 18:05 GustavoCarvallo

I was able to make it work, my problem was that I was forgetting of importing the .css. After I add that import, it works.

My imports now are like this:

import { AwesomeButton } from 'react-awesome-button';
import 'react-awesome-button/dist/styles.css';

GustavoCarvallo avatar May 09 '20 19:05 GustavoCarvallo