Code Monkey home page Code Monkey logo

Comments (6)

LukasGrebe avatar LukasGrebe commented on May 24, 2024

See also: https://github.com/react-bootstrap/react-bootstrap/blob/master/package.json which does not list react as a dependency, but rather as a dev-dependancy

from react-bootstrap-typeahead.

ericgio avatar ericgio commented on May 24, 2024

Did you install with npm or are you using the UMD version? If using npm, are all your modules installed with that or are you also using other package managers, like bower?

from react-bootstrap-typeahead.

LukasGrebe avatar LukasGrebe commented on May 24, 2024

I used npm only.
the package.json

"dependencies": {
    "babel-loader": "^6.2.4",
    "babel-preset-es2015": "^6.6.0",
    "babel-preset-react": "^6.5.0",
    "react": "^15.0.2",
    "react-bootstrap": "^0.29.3",
    "react-bootstrap-typeahead": "^0.4.0",
    "react-dom": "^15.0.2",
    "style-loader": "^0.13.1",
    "urijs": "^1.18.0",
    "webpack": "^1.13.0"
  },

Just using react-bootstrap worked fine.

from react-bootstrap-typeahead.

ericgio avatar ericgio commented on May 24, 2024

My guess is that this is happening because react-bootstrap-typeahead has React 14.x as a dependency while your package has 15.x, so 2 versions of React are being installed.

from react-bootstrap-typeahead.

winstonewert avatar winstonewert commented on May 24, 2024

See https://nodejs.org/en/blog/npm/peer-dependencies/

Two versions of react are being installed, and the correct solution is to use peerDependency which means: I need this version of react, but don't install a seperate copy from that already used.

from react-bootstrap-typeahead.

ericgio avatar ericgio commented on May 24, 2024

This has been updated in v0.5.0, let me know if you continue to experience problems.

from react-bootstrap-typeahead.

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.