Comments (14)
Fixed it
from react-slick.
I'm getting the same error in version 0.4.1
from react-slick.
@burtyish We use babel-loader as the transformer. What build tool are you using and what is your configuration ?
from react-slick.
@burtyish reactify is already added in devDependencies of package.json
from react-slick.
@vramana I use grunt-browserify and the coffee-reactify transform.
Not sure how to answer about my configuration... what kind of information would be relevant?
from react-slick.
It is not about relevancy. I don't how to setup grunt properly so little bare-bones grunt conf would help me to focus on the issue rather than trying to setup grunt.
from react-slick.
I see, you're trying to reproduce the problem. I'll see if I can provide a bare-bones setup like you mentioned.
By the way, if I use the files in the dist folder directly, browserify succeeds, but I run into #40
from react-slick.
Yes. I want to reproduce the issue. I'll look in that as well.
from react-slick.
I used a boilerplate to quickly set it up. You can clone https://github.com/burtyish/grunt-react-boilerplate and try it out yourself.
Thanks for the quick reply!
from react-slick.
I think I found the issue @burtyish. You have to reactify is added as devDependency, so it is not being installed by default. If I add it as dependency, I don't see this anymore.
But the grunt transformer is not properly transforming App.jsx
So it is giving errors. When I added this
"browserify": {
"transform": [
[
"reactify",
{
"es6": true
}
]
]
}
To package.json everything compiles.
from react-slick.
I'd like to test the fix in my project. Do I have to wait for a release?
from react-slick.
We just released 0.5 version !! Try it out.
from react-slick.
Now I get Error: Cannot find module 'reactify' from './node_modules/react-slick/node_modules/react-responsive-mixin'
However, if I require node_modules/react-slick/dist/react-slick.min
directly, it works fine.
from react-slick.
@burtyish That is because of this https://github.com/akiran/react-responsive-mixin/blob/master/package.json#L44 I will clean it up later.
from react-slick.
Related Issues (20)
- Performance issue with clones (infinite)
- initialSlide is ignored on breakpoints HOT 1
- currentSlide from afterChange event shows decimal when using SlidesToShow as decimal and infinite:false
- autoplay does not work when PauseOnHover, pauseOnFocus, and pauseOnDotsHover are all true
- Unexpected Behavior in Vertical Mode Swipe HOT 6
- Link Css file not working in Nextjs HOT 10
- Slick Infante is not working HOT 1
- If used infinite, speed will not work
- IOS 14 and up - slider won't scroll on drag
- Get offsetWidth of element in slick-track
- Upgrade to react 19 HOT 1
- React-slick issue HOT 1
- dots are coming as numbers
- asNavFor behavior change after 0.30 release
- I have only one slide and its replicate the inner content three times HOT 6
- Prop "slide" seems not to work
- bug with aria-hidden
- Error with compatibility with react ^18 HOT 6
- RTL Direction Not Working Properly HOT 1
- Border being delayed when going from last slide to first slide again HOT 2
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-slick.