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.

Missing dependencies for `create-react-class` and `prop-types`

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:62
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

20reactions
starsinmypocketscommented, May 5, 2017

Sigh you broke the internet

20reactions
corzzocommented, May 2, 2017

Temporary fix:

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

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.
Read more >
Disable React.createClass and PropTypes deprecated ...
PropTypes has been deprecated in v15.5. Some Peers/dependencies must be using React.createClass and React.PropTypes with React:^15.4 (or any ...
Read more >
create-react-class - npm Package Health Analysis - Snyk
Is create-react-class safe to use? The npm package create-react-class was scanned for known vulnerabilities and missing license, and no issues were found. Thus ......
Read more >
Typechecking With PropTypes - React
To run typechecking on the props for a component, you can assign the special propTypes property: import PropTypes from 'prop-types'; class Greeting extends ......
Read more >
eslint-plugin-react - npm
Maintenance Status NPM version Build Status Dependency Status Coverage ... react/prop-types: Prevent missing props validation in a React ...
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