Comments (6)
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.
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.
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.
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.
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.
This has been updated in v0.5.0, let me know if you continue to experience problems.
from react-bootstrap-typeahead.
Related Issues (20)
- Feature Request: Remove hardcoded style tag from hint HOT 1
- is there any way conditionally trigger MenuItem selection event? HOT 4
- Typeahead copy/paste value in field results in undefined when not selecting from list HOT 1
- Text overlay with suggested text when pasted from clipboard HOT 1
- Add button to end of list for "View All" elements, or any other action really HOT 1
- Scrolling gets "stuck", bound by keeping the active item in view HOT 1
- Uncaught Error: flushSync was called from inside a lifecycle method. It cannot be called when React is already rendering HOT 3
- Options with a falsey "disabled" property get skipped on keyboard navigation HOT 1
- "Select All" prop HOT 4
- remove defaultProps from ClearButton HOT 1
- 6.3.0 defaults isLoading to true HOT 1
- Package failing in parcel bundler HOT 1
- Using Typeahead as Ref / createRef<Typeahead<any>>() / TS 5.2 / react 18.2.0 HOT 1
- Allow component in `labelKey` HOT 1
- There is no required attribute HOT 1
- Disabled options can be selected by pressing Tab key HOT 2
- Feature Request - Sorting Options Based on Search Query
- Max tokens prop when multiple
- When multiple is set to true to have the possibility of having the menu open when clicking on an option and close on click outside
- Can't access custom MenuItem html HOT 4
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-bootstrap-typeahead.