React-select: Uncaught Error: Cannot find module 'react-dom'

Created on 3 Dec 2015  路  10Comments  路  Source: JedWatson/react-select

in my Rails app

reactjs version 0.14.3, via gem react-rails version: 1.5.0 see react-rails/versions.md
react-select version 0.9.1 via Bower

also I've installed react-dom version 0.1.0 via Bower.

Most helpful comment

Upgrading "react-select" to 1.0.0-beta9 fixed this error for me in my rails application.

All 10 comments

I had the same error. Upgrading react-select to 1.0.0.beta6 fixed it for me. Possibly an incompatibility with React 0.14?

0.14.3 of react and 0.9.1 of react-select is working fine for me!

I am having this issue as well:
"react": "^0.14.3",
"react-dom": "^0.14.3",
"react-select": "^0.9.1",

Tried @masonjm workaround but still fails.Any person who has managed to solve this?

I removed and installed it again and then I bumped into #582 and I fixed it by including the classnames and react-input-resize files before calling the react-select. It works now:

"react": "~0.14.3",
"react-select": "~0.9.1"

Just in case someone is wondering where can they get those dependencies,

https://github.com/JedWatson/classnames
https://github.com/JedWatson/react-input-autosize

including the dependencies does NOT work for me:

<head>
    <link rel="stylesheet" href="node_modules/react-select/dist/react-select.css"></link>

    <script src="node_modules/classnames/index.js"></script>
    <script src="node_modules/react/dist/react.js"></script>
    <script src="node_modules/react-dom/dist/react-dom.js"></script>
    <script src="node_modules/react-input-autosize/dist/react-input-autosize.js"></script>
    <script src="node_modules/react-select/dist/react-select.js"></script>
</head>
<body></body>
</html>

"dependencies": {
    "classnames": "^2.2.3",
    "react": "^0.14.7",
    "react-dom": "^0.14.7",
    "react-input-autosize": "^0.6.8",
    "react-select": "^0.9.1"
  }

Upgrading "react-select" to 1.0.0-beta9 fixed this error for me in my rails application.

I am stuck as well. I am getting Uncaught TypeError: (0 , h.default) is not a functionwith 1.0.0-beta6. (Not such thing as 1.0.0-beta9 for now.)

Version 1 of react-select is no longer supported.

In the best interest of the community we've decided to spend the time we have available on the latest version.

We apologise for any inconvenience.

Please see:

  1. v1 to v2 upgrade guide
  2. v1 documentation and examples
Was this page helpful?
0 / 5 - 0 ratings

Related issues

steida picture steida  路  3Comments

AchinthaReemal picture AchinthaReemal  路  3Comments

sampatbadhe picture sampatbadhe  路  3Comments

yrabinov picture yrabinov  路  3Comments

mbonaci picture mbonaci  路  3Comments