alexandre-garrec / react-swipe-card

Tinder style swipe cards
https://alexandre-garrec.github.io/react-swipe-card
136 stars 79 forks source link

Cannot export Card from CardSwitcher #18

Open ghost opened 6 years ago

ghost commented 6 years ago

Hey, I'm trying to use your package, but instead of installing it via npm install, i tried downloading the source code directly.

This is the error I get:

./src/components/react-swipe-card/index.js
Syntax error: Unexpected token, expected { (3:7)

  1 | import Cards from './Cards'
  2 | 
> 3 | export Card from './CardSwitcher'
    |        ^
  4 | 
  5 | export default Cards
  6 | 

If installed via npm install, it works ok, however, I want to modify some functionality and I can understand this source code better.