Giter Club home page Giter Club logo

Comments (14)

akiran avatar akiran commented on July 16, 2024

Fixed it

from react-slick.

burtyish avatar burtyish commented on July 16, 2024

I'm getting the same error in version 0.4.1

from react-slick.

vramana avatar vramana commented on July 16, 2024

@burtyish We use babel-loader as the transformer. What build tool are you using and what is your configuration ?

from react-slick.

akiran avatar akiran commented on July 16, 2024

@burtyish reactify is already added in devDependencies of package.json

from react-slick.

burtyish avatar burtyish commented on July 16, 2024

@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.

vramana avatar vramana commented on July 16, 2024

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.

burtyish avatar burtyish commented on July 16, 2024

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.

vramana avatar vramana commented on July 16, 2024

Yes. I want to reproduce the issue. I'll look in that as well.

from react-slick.

burtyish avatar burtyish commented on July 16, 2024

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.

vramana avatar vramana commented on July 16, 2024

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.

burtyish avatar burtyish commented on July 16, 2024

I'd like to test the fix in my project. Do I have to wait for a release?

from react-slick.

vramana avatar vramana commented on July 16, 2024

We just released 0.5 version !! Try it out.

from react-slick.

burtyish avatar burtyish commented on July 16, 2024

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.

vramana avatar vramana commented on July 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.