react-input-autosize: Missing dependencies for `create-react-class` and `prop-types`
Hey, My build is failing because of a recent update of this library.
Log -
Error: Cannot find module 'create-react-class'
at Function.Module._resolveFilename (module.js:470:15)
at Function._resolveFilename (/home/uv/dev/t2k-js-common/node_modules/mocha-webpack/lib/util/registerRequireHook.js:42:34)
at Function.Module._load (module.js:418:25)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/uv/dev/t2k-js-common/node_modules/react-input-autosize/lib/AutosizeInput.js:7:19)
at Module._compile (module.js:571:32)
at Module._extensions..js (module.js:580:10)
...
Seems like you added usage to a library but forgot to add it to dependency\peer dependency. Thanks in advance.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 62
- Comments: 19 (1 by maintainers)
Commits related to this issue
- Fix react-input-autosize dependency bug More info: https://github.com/JedWatson/react-input-autosize/issues/84 — committed to cerebroapp/cerebro by KELiON 7 years ago
- Fix react-input-autosize dependency bug More info: https://github.com/JedWatson/react-input-autosize/issues/84 — committed to cerebroapp/cerebro by KELiON 7 years ago
- Working around version bump futz Read: https://github.com/JedWatson/react-input-autosize/issues/84 — committed to krux/chronos by deleted user 7 years ago
- Working around version bump futz Read: https://github.com/JedWatson/react-input-autosize/issues/84 — committed to krux/chronos by deleted user 7 years ago
- temporary workaround for the third-party react-input-autosize bug https://github.com/JedWatson/react-input-autosize/issues/84 about missing dependency, by explicitly adding it into on-web-ui dependenc... — committed to iceiilin/on-web-ui by iceiilin 7 years ago
- Fix js dependencies. See also https://github.com/JedWatson/react-input-autosize/issues/84. — committed to brocaar/chirpstack-application-server by brocaar 7 years ago
- Fix react-input-autosize dependency bug More info: https://github.com/JedWatson/react-input-autosize/issues/84 — committed to Sajjashemian/cerebro by KELiON 5 years ago
Sigh you broke the internet
Temporary fix:
npm install --save react-input-autosize@1.1.0
@unimonkiez Related temporary fix is doing the following:
Install that module manually
npm install create-react-classThen somewhere in your code, add:
require('create-react-class');This was driving me insane yesterday after installing
react-selectand having everything explode. As a freak accident, I came across this and figured it out:https://facebook.github.io/react/docs/react-without-es6.html
@mAiNiNfEcTiOn This is definitely nuking projects all over the place.
If it’s any help, here’s the output of the error:
So, somebody added a new dependency without bumping the major version number and broke semver?
some people just want to watch the world burn.
TypeError: Cannot read property ‘string’ of undefined ./node_modules/react-select-plus/node_modules/react-input-autosize/lib/AutosizeInput.js D:/react/build/node_modules/react-select-plus/node_modules/react-input-autosize/lib/AutosizeInput.js:31 28 | var AutosizeInput = React.createClass({ 29 | displayName: ‘AutosizeInput’, 30 | propTypes: {
#85 fixes this
This error can be temporarily fixed by adding create-react-class
npm i --save create-react-classAmazing this hasn’t been fixed yet. @JedWatson are you on holidays?