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.

error coming from AutoresizeInput dependency

See original GitHub issue

Problem 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:closed
  • Created 6 years ago
  • Reactions:48
  • Comments:11

github_iconTop GitHub Comments

1reaction
agirtoncommented, May 19, 2017

This has been fixed with the latest release, closing.

1reaction
malikimprowisedcommented, May 8, 2017

@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 of react-input-autosize cause the error.

Read more comments on GitHub >

github_iconTop 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 >

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