error coming from AutoresizeInput dependency
See original GitHub issueProblem Description
The react-input-autosize
dependency is throwing an error when React-Select is imported.
Here is the error:
ERROR in ./~/react-input-autosize/lib/AutosizeInput.js
Module not found: Error: Can't resolve 'create-react-class' in '/react/node_modules/react-input-autosize/lib'
@ ./~/react-input-autosize/lib/AutosizeInput.js 7:18-47
@ ./~/react-select/lib/Select.js
Cause
It looks like a patch version of react-input-autosize
was published today. The changes are causing the error above.
Here is how react-input-autosize
is currently included with react-select
:
"react-input-autosize": "^1.1.0"
see: https://github.com/JedWatson/react-select/blob/master/package.json#L15
Quick Fix
You can quickly fix the issue by removing the carrot from your dependency version:
Replace the line linked above with:
"react-input-autosize": "1.1.0"
I fixed the error in my project by explicitly adding "react-input-autosize": "1.1.0"
as a dependency to my project.
I hope this is helpful, I ❤️ your component!
Issue Analytics
- State:
- Created 6 years ago
- Reactions:48
- Comments:11
Top Results From Across the Web
Adjust width of input field to its input
Every input has a built-in padding of 2em , that is the problem and second problem is that min-width ain't working on input...
Read more >react-input-autosize
Auto-resizing Input Component for React. Latest version: 3.0.0, last published: 2 years ago. Start using react-input-autosize in your ...
Read more >OpenLMIS Documentation
Bug fixes: • Added openlmis-offline as a dependency to the referencedata-program module. • OLMIS-3291: Fixed incorrect state name.
Read more >Untitled
Gedekte tafel communie, Chef joe chicago, Fem pop bypass graft failure, Sunshot program ... Audio spatial perception, Poop coming out of someone's bum, ......
Read more >Untitled
Cna e&o claims, Digitaria favourite addiction, Free sinhala nonstops, Legal paid holidays ... Misioneros de cristo en caricatura, Auto resize input field, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This has been fixed with the latest release, closing.
@baijifeilong I just faced this problem. Please add
react-input-autosize": "1.1.0
this line to package.json of your project. It seems that newer version ofreact-input-autosize
cause the error.