Giter Club home page Giter Club logo

Comments (19)

corzzo avatar corzzo commented on July 24, 2024 20

Temporary fix:

npm install --save react-input-autosize@1.1.0

from react-input-autosize.

starsinmypockets avatar starsinmypockets commented on July 24, 2024 20

Sigh you broke the internet

from react-input-autosize.

dandonahoe avatar dandonahoe commented on July 24, 2024 13

@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.

the-spyke avatar the-spyke commented on July 24, 2024 12

So, somebody added a new dependency without bumping the major version number and broke semver?

from react-input-autosize.

LDubya avatar LDubya commented on July 24, 2024 5

some people just want to watch the world burn.

from react-input-autosize.

thesmilingsloth avatar thesmilingsloth commented on July 24, 2024 4

This error can be temporarily fixed by adding create-react-class
npm i --save create-react-class

from react-input-autosize.

jochenberger avatar jochenberger commented on July 24, 2024 4

#85 fixes this

from react-input-autosize.

RickyReskyAnanda avatar RickyReskyAnanda commented on July 24, 2024 4

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.

mooncakelmn avatar mooncakelmn commented on July 24, 2024 2
  • 1 for this, breaking my apps as well

from react-input-autosize.

lochstar avatar lochstar commented on July 24, 2024 1

Amazing this hasn't been fixed yet. @JedWatson are you on holidays?

from react-input-autosize.

mAiNiNfEcTiOn avatar mAiNiNfEcTiOn commented on July 24, 2024

Duplicated of #82

from react-input-autosize.

lochstar avatar lochstar commented on July 24, 2024

Yep, this got me as well. Rolling back to 1.1.0.

from react-input-autosize.

kyle-ssg avatar kyle-ssg commented on July 24, 2024

http://www.squce.com/wp-content/uploads/2014/07/jLZz4Na.gif

from react-input-autosize.

nitruxa avatar nitruxa commented on July 24, 2024

@JedWatson bump! ping!

from react-input-autosize.

jkahrs595 avatar jkahrs595 commented on July 24, 2024

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.

MichaelDeBoey avatar MichaelDeBoey commented on July 24, 2024

This is fixed in v1.1.4 (#83)

from react-input-autosize.

azotova avatar azotova commented on July 24, 2024

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.

zbisj avatar zbisj commented on July 24, 2024

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.

echarso avatar echarso commented on July 24, 2024

same problem here

from react-input-autosize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.