-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught Error: Cannot find module 'create-react-class' #1727
Comments
This sounds like you have some dependency issues. Can you let me know what steps you have taken after you saw this issue? Can you give me a reproducible build? |
@agirton Thanks for looking into this!
I get two error messages:
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):
|
Thanks, I will need to update the README, but you will need to include |
Thanks! I think that this will fix the issue with react-select but not with react-input-autosize. In case of react-input-autosize, the |
The UMD build of |
I included |
A very simple way to reproduce the issue:
Just opening a file with this code in the browser triggers error messages. |
Hi, same issue as azotova, I'm blocked, I manage to build the project with npm start and run the demo, but no way I can find a working set of script includes to code my own selects. |
Same issue here. We have the same two console errors as azotova. Reverted to 1.0.0-rc.3 and autosize 1.1.0 as a work-around. |
Same issue as @aluskin and @azotova. Also found that reverting to [email protected] and [email protected] with [email protected] solves the issue. |
Hi guys, the workaround does not work for me. There is no js error and the select control appears, but no click would work, don't get why. Here's my code:
With the following jsx:
|
@vincentlabatut It looks like your issue is not related to react-select versions. I might be wrong but I would guess the click doesn't work because you haven't specified the onChange handler. |
@azotova Got it ! thanks ! I thought naively I could reuse pieces of code from the github home readme, but they're not real examples, they don't really "work". I could see the real examples in the sources. Thanks a lot. That doesn't solve the create-react-class problem, that is blocking. |
Until standalone versions are available again on github you can use these links: Symbols are exported as |
@pateketrueke Thank you for the links, but these builds throw errors for me:
Do you have any idea how this could be fixed? Comments in #606 seem to point to a duplicate React dependency. |
Sorry, in a first glance it worked but soon I ended up with similar errors... After all my solution was creating a dedicated import React from 'react';
import ReactDOM from 'react-dom';
import ReactSelect from 'react-select';
window.React = React;
window.ReactDOM = ReactDOM;
window.Select = ReactSelect; This is far better than bundling this vendors with my application code, otherwise the bundle time is slow as hell... |
@JedWatson I see you have resumed work on this project, this is great! |
@mcorteel a lot of reasons, yes - let's discuss that in a separate issue though if you have specific things that are breaking for you (please report with details). A lot of issues with the new dist build have been solved in rc.8 This particular issue should have been fixed with the |
The text was updated successfully, but these errors were encountered: