Comments (8)
@jweb89 @rokajova @nikoskleidis Hi, I am wondering if you have tried the latest version?
from react-gallery-carousel.
Just to add some more information, this is the difference between my .next directory and the one outputted from your project. So maybe it's the difference between having it as a node_module vs having in it's own directory? I'm going to copy the dist into my own project to hopefully just get it working
from react-gallery-carousel.
Yeah it does work with just copying the dist folder and importing it like a normal file so it must something about how next resolves images paths
from react-gallery-carousel.
Hi @jweb89 ! Thank you for raising this issue up! 😃
I recall I got a similar issue before. At that time, I also wonder if it was Next.js that has compiled the files differently. I am glad to hear that you get it working again! Well done! 👏
from react-gallery-carousel.
Yeah it does work with just copying the dist folder and importing it like a normal file so it must something about how next resolves images paths
Did you get it to work? I'm still getting the same SyntaxError: Invalid or unexpected token
as before.
from react-gallery-carousel.
Yeah it does work with just copying the dist folder and importing it like a normal file so it must something about how next resolves images paths
Did you get it to work? I'm still getting the same
SyntaxError: Invalid or unexpected token
as before.
Yeah you just can't use it as NPM package. I cloned this repo and just copied the dist folder to my project and imported it like a normal file. Are you using Next as well?
from react-gallery-carousel.
I also faced the same issue with NextJS 12. Hope it is fixed someday. I really liked this library!
from react-gallery-carousel.
I think I fixed the issue in v0.2.7. Please feel free to comment down below if this issue is still there after upgrading.
from react-gallery-carousel.
Related Issues (20)
- Issues lazy loading images in gallery HOT 9
- How to use array of photos in carousel user managed slide ? HOT 1
- Allow thumbnails to be at the side HOT 4
- Carousel Button Titles HOT 2
- Typo: minIcon Typescript type is not accepted by Carousel Component HOT 5
- The component can't be used in a TS React project HOT 1
- Npm install doesnt work currently HOT 3
- npm install doesnt work on react-gallery-carousel/example/ HOT 3
- Cant make this module work HOT 4
- shouldMaximizeOnClick doesn't work HOT 2
- Add option for scroll bar for thumbnails HOT 3
- shouldSwipeOnMouse block onTap handler HOT 3
- Maximize and minimize using soft touch on trackpad HOT 5
- Transitions aren't working HOT 1
- Slides that have an a-tag inside them aren't clickable on mobile HOT 1
- Expose a prop to allow a custom placeholder image HOT 8
- Only show the first image HOT 4
- Pause on Hover HOT 2
- Pictures don't appear properly when sliding
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-gallery-carousel.