question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught Error: Cannot find module 'create-react-class'

See original GitHub issue
Uncaught Error: Cannot find module 'create-react-class'
    at s (react-select.js:1)
    at react-select.js:1
    at Object.<anonymous> (react-select.js:823)
    at Object.5../Async (react-select.js:2038)
    at s (react-select.js:1)
    at e (react-select.js:1)
    at react-select.js:1
    at react-select.js:1
    at react-select.js:1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:12
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
willytscommented, May 31, 2017

Same issue as @aluskin and @azotova. Also found that reverting to react-select@1.0.0-rc.3 and react-input-autosize@1.1.0 with react@15.5.4 solves the issue.

2reactions
azotovacommented, May 17, 2017

@agirton Thanks for looking into this! I use the builds from CDN:

<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-with-addons.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/classnames/2.2.5/index.js"></script>
<script src="https://npmcdn.com/react-input-autosize/dist/react-input-autosize.js"></script>
<script src="https://npmcdn.com/react-select/dist/react-select.js"></script>

I get two error messages:

  1. Uncaught Error: Cannot find module ‘react’ (this comes from react-input-autosize, I described the issue with react in a comment here: JedWatson/react-input-autosize#84 )
  2. Uncaught Error: Cannot find module ‘create-react-class’ from react-select.

My temporary fix is to use the previous versions of react-select and react-input-autosize (in this way I get react warnings but at least everything works):

script(src="https://npmcdn.com/react-input-autosize@1.1.0/dist/react-input-autosize.js")
script(src="https://npmcdn.com/react-select@1.0.0-rc.3/dist/react-select.js")
Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'react' Error in TypeScript | bobbyhadz
To solve the "Cannot find module react or its corresponding type declarations" error, install the module and its type definitions by running the...
Read more >
create-react-class - npm
Start using create-react-class in your project by running `npm i create-react-class`. There are 1713 other projects in the npm registry ...
Read more >
0 - Stack Overflow
Uncaught Error : Cannot find module './undefined' ; import axios from ; 'axios'; const ; BASE_URL = "http://localhost:5000/api" ; const Token ; " ......
Read more >
Switching to Preact (from React)
Simply add the following resolve.alias configuration to your webpack.config.js : ... Preact does not use a separate module for DOM rendering, ...
Read more >
testing - Meteor forums
js:475 }).run(); ^ Error: Cannot find module './defineProperty' at makeMissingError (packages/modules-runtime.js:231:12) at require ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found