minhtranite / react-photoswipe

PhotoSwipe, PhotoSwipeGallery component for ReactJS base on PhotoSwipe.
322 stars 106 forks source link

getting error You may need appropriate loader to handle the file type. #26

Open Swapnilchavan18 opened 7 years ago

Swapnilchavan18 commented 7 years ago

node_modules\react-photoswipe\src\photoswipe.js Unexpected token (9:19) You may need an appropriate loader to handle this file type.

class PhotoSwipe extends React.Component { | static propTypes = { | isOpen: React.PropTypes.bool.isRequired, | items: React.PropTypes.array.isRequired, @ ./~/react-photoswipe/lib/PhotoSwipe.js 29:18-39 @ ./~/react-photoswipe/lib/index.js

hirviid commented 7 years ago

Have the same issue, after upgrading from weback 1 to webpack 2. Don't know if it's related. Have you found a solution?

Swapnilchavan18 commented 7 years ago

No I didn't found solution. Then I used photoswipe JavaScript version with npm.

marcelocotrim commented 6 years ago

same issue here. Any solution?