BosNaufal / react-ripple

React Component to Make Google Material Design Ripple Effect. http://bosnaufal.github.io/react-ripple/
MIT License
33 stars 10 forks source link

Uncaught SyntaxError: Unexpected token import #1

Open rafkhan opened 8 years ago

rafkhan commented 8 years ago

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

BosNaufal commented 8 years ago

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

fdidron commented 7 years ago

@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",