Comments (19)
Temporary fix:
npm install --save react-input-autosize@1.1.0
from react-input-autosize.
Sigh you broke the internet
from react-input-autosize.
@unimonkiez Related temporary fix is doing the following:
Install that module manually
npm install create-react-class
Then somewhere in your code, add:
require('create-react-class');
This was driving me insane yesterday after installing react-select
and 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:
ERROR in ./~/react-input-autosize/lib/AutosizeInput.js
Module not found: Error: Can't resolve 'create-react-class' in '/node_modules/react-input-autosize/lib'
@ ./~/react-input-autosize/lib/AutosizeInput.js 7:18-47
@ ./~/react-select/lib/Select.js
@ ./app/containers/HomePage/index.js
@ ./app/routes.js
@ ./app/app.js
@ multi main
from react-input-autosize.
So, somebody added a new dependency without bumping the major version number and broke semver?
from react-input-autosize.
some people just want to watch the world burn.
from react-input-autosize.
This error can be temporarily fixed by adding create-react-class
npm i --save create-react-class
from react-input-autosize.
#85 fixes this
from react-input-autosize.
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: {
31 | className: React.PropTypes.string,
32 | // className for the outer element
33 | defaultValue: React.PropTypes.any,
34 | // default field value
View compiled
from react-input-autosize.
- 1 for this, breaking my apps as well
from react-input-autosize.
Amazing this hasn't been fixed yet. @JedWatson are you on holidays?
from react-input-autosize.
Duplicated of #82
from react-input-autosize.
Yep, this got me as well. Rolling back to 1.1.0.
from react-input-autosize.
http://www.squce.com/wp-content/uploads/2014/07/jLZz4Na.gif
from react-input-autosize.
@JedWatson bump! ping!
from react-input-autosize.
While I'm good and mad and motivated, how can I prevent this from happening again with another project? I've already removed the carets in my package.json, but how can I make sure that my dependencies aren't pulling in weird things I don't want them to?
from react-input-autosize.
This is fixed in v1.1.4
(#83)
from react-input-autosize.
I use the build 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>
and get the following error: Cannot find module 'react'.
This comes from line 742 here https://npmcdn.com/[email protected]/dist/react-input-autosize.js (i.e. from create-react-class module), combined with line 754 ({"./factory":1,"react":undefined}
). It looks like the create-react-class module was not browserified properly.
The temporary fix is to explicitly specify the version (https://npmcdn.com/[email protected]/dist/react-input-autosize.js
), but it would be great to get a permanent solution.
from react-input-autosize.
I installed the create-react-class
module but I get this error:
Uncaught Error: Module build failed: Error: ENOENT: no such file or directory, open '/home/sibabale/projects/siba/react-playlist/node_modules/webpack-dev-server/client/index.js' at Object.19 (bundle.js:794) at __webpack_require__ (bundle.js:679) at fn (bundle.js:89) at Object.18 (bundle.js:783) at __webpack_require__ (bundle.js:679) at 0 (bundle.js:725) at bundle.js:728
from react-input-autosize.
same problem here
from react-input-autosize.
Related Issues (20)
- add ref for sizer div for width queries HOT 1
- MinWidth is set to 1 even placeholder is passed down
- Modify styling for :focus and ::placeholder HOT 2
- Update width on viewport resize HOT 1
- Input auto focus property not working
- npm error
- componentWillReceiveProps is deprecated HOT 2
- Failed to load config "keystone-react" to extend from* HOT 2
- How do you style the inner input? HOT 2
- Old prop-types version references bad node-fetch version
- React 17 support HOT 3
- Size isn't computed properly with custom fonts
- Does not update when input element is hidden on first render
- Width is not calculated correctly on font-size change HOT 2
- package-lock.json in repo is not in sync with package.json HOT 1
- Error: Cannot find module 'babel-preset-env' HOT 4
- [bug] input autosize not working with decimals and comma HOT 1
- [bug] css variables
- Passing ref to AutoSizeInput Component HOT 2
- Update for React 18 support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-input-autosize.