minhtranite / react-photoswipe

PhotoSwipe, PhotoSwipeGallery component for ReactJS base on PhotoSwipe.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Swapnilchavan18 opened this issue · comments

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

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

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

same issue here.
Any solution?