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: Cannot find module 'prop-types'

See original GitHub issue

Does not load and throws an Error in dev tools:

bundle.js:1 Error: Cannot find module 'prop-types'
    at Module._resolveFilename (module.js:470:15)
    at Function.Module._resolveFilename (/Applications/Hyper.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35:12)
    at Function.Module._load (module.js:418:25)
    at Function.c._load (file:///Applications/Hyper.app/Contents/Resources/app.asar/renderer/bundle.js:1:8001)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/gbriel/.hyper_plugins/node_modules/hyperline/dist/hyperline.js:128:18)
    at __webpack_require__ (/Users/gbriel/.hyper_plugins/node_modules/hyperline/dist/hyperline.js:20:30)
    at Object.<anonymous> (/Users/gbriel/.hyper_plugins/node_modules/hyperline/dist/hyperline.js:1339:69)
    at __webpack_require__ (/Users/gbriel/.hyper_plugins/node_modules/hyperline/dist/hyperline.js:20:30)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:25
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
julien-HAMcommented, Jan 2, 2018
  1. Add prop-types to the plugins in .hyper.js
...
 plugins: [
    'prop-types',
    'hyperline'
  ],
  1. Restart Hyper
3reactions
jaceccommented, Dec 22, 2017

I had the same issue so rolled back (as suggested by @mloberg in issue Error: Cannot find module ‘react’ “Using version “0.6.1” fixed Hyperline for me. Use hyperline#0.6.1 instead of hyperline in your plugins list.”)

Read more comments on GitHub >

github_iconTop Results From Across the Web

React prop-types error - Stack Overflow
As of React 15.5.0, PropTypes have been removed from the core React package as a separate dependency. To fix this, add prop-types into...
Read more >
prop-types - npm
Runtime type checking for React props and similar objects. You can use prop-types to document the intended types of properties passed to ...
Read more >
Could not find a declaration file for module 'prop-types' #2254
It was solved by installing @types/prop-types. npm i -D @types/prop-types. Should that be added as a dependency for office-ui-fabric-react ...
Read more >
Don't Call PropTypes Warning - React
This happens because React doesn't see a “secret” last argument that it passes to detect manual PropTypes calls. Here is how to fix...
Read more >
Prop-types could not be found within the project
I am getting below error when I start the App. [Output] Error: Unable to resolve module prop-types from <PROJECT_ROOT>\node_modules\react-native ...
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