You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found the solution for this, the root cause is that I'v ignore the js inside node_modules folder. But infinite-carousel is written in jsx and need to be loaded from jsx-loader. So I add special case while loading it.
Just to give a little cleaner formatting, this is part of my webpack.config.js. I had the first loader in there so I added the second object and that did it. You may have to npm install jsx-loader as well.
Hi!
I'm using react-infinite-carousel in react 0.14.5, I found this issue:
ERROR in ./~/react-infinite-carousel/src/Carousel.js
Module parse failed:
webapp/node_modules/react-infinite-carousel/src/Carousel.js Line 94: Unexpected token <
You may need an appropriate loader to handle this file type.
|
| return (
| <div key={"carouselItem" + (index % (2 * this.getItemsPerSide() + 1 ))} style={itemStyle}>
| {this.props.itemRenderer(index, itemProgress)}
|
@ ./src/containers/Home/Home.js 33:29-63
Can you please help? Thanks!
The text was updated successfully, but these errors were encountered: