Code Monkey home page Code Monkey logo

Comments (5)

rohandas avatar rohandas commented on June 12, 2024 4

I faced the same issue, except even after installing browserify-shim I got the error Label.js:74 Uncaught TypeError: Cannot read property 'Component' of undefined, and am not sure how to solve that.

from react-input-range.

andest01 avatar andest01 commented on June 12, 2024 2

I also ran into the same problem as @rohandas. Getting browserify-shim to work proved to be too daunting, so I'm uninstalling this and moving to another solution. I'll use this solution on other projects, just not this one.

from react-input-range.

Stenerson avatar Stenerson commented on June 12, 2024

@rohandas not sure if this is your issue or not but I've seen this before when using var InputRange = require('react-input-range'); on components that use es6 exports. Perhaps using import InputRange from 'react-input-range'; will fix this for you?

from react-input-range.

tomnewport avatar tomnewport commented on June 12, 2024

Just echoing same problem as @rohandas - I'm using ES6 imports:

import InputRange from 'react-input-range';
    Label.js:77 Uncaught TypeError: Cannot read property 'Component' of undefined
    at Object.<anonymous> (Label.js:77)
    at Object.223 (Label.js:86)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.<anonymous> (Slider.js:25)
    at Object.224../Label (Slider.js:252)
    at s (_prelude.js:1)
    at _prelude.js:1
    at Object.<anonymous> (InputRange.js:25)
    at Object.222../Label (InputRange.js:773)

from react-input-range.

davidchin avatar davidchin commented on June 12, 2024

Thanks for raising this issue. The problems listed above should be fixed with ^1.0.0.

from react-input-range.

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.