react-ripple icon indicating copy to clipboard operation
react-ripple copied to clipboard

Uncaught SyntaxError: Unexpected token import

Open rafkhan opened this issue 8 years ago • 2 comments

I wish I could give more information than this, but whenever I add

import { Ripple } from 'react-ripple-effect';

my code breaks with that error. I'm using webpack w/ babel if that changes anything

rafkhan avatar Sep 01 '16 10:09 rafkhan

Hey @rafkhan, Thank you for send me an issue~ Do you have any .babelrc? ;)

BosNaufal avatar Sep 01 '16 14:09 BosNaufal

@BosNaufal I think there is an issue with the project's package.json since a babel's transpilation should almost never happen in node_modules :)

"main": "./src/js/components/index.js", should be "main": "./build/build.js",

fdidron avatar Dec 07 '16 02:12 fdidron