Hyperline / hyperline

✨ Status line plugin for Hyper ✨
MIT License
619 stars 120 forks source link

Error: Cannot find module 'prop-types' #134

Closed mssngr closed 6 years ago

mssngr commented 6 years ago

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)
db369 commented 6 years ago

I have the exact same error on Hyper 1.4.8. I tried the latest pre-release of Hyper as well, but had the same error.

gabemeola commented 6 years ago

yup I have to manual add prop-types to .hyper_plugins/ dir

usrbowe commented 6 years ago

@gabemeola with installing prop-types it started working, but it continued complaining about other missing packages, like react and the style is kinda broken.

NickTikhonov commented 6 years ago

Hey all - this was caused by a new version that switched the plugin over to using prop-types. Did a rollback to the old version, hopefully everything should be fine. Will look into a better fix soon!

sanfilippopablo commented 6 years ago

@NickTikhonov I keep getting this error while installing the plugin, how can I roll back the version?

jacec commented 6 years ago

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.")

sanfilippopablo commented 6 years ago

@jacec Thanks!

julien-HAM commented 6 years ago
  1. Add prop-types to the plugins in .hyper.js
    ...
    plugins: [
    'prop-types',
    'hyperline'
    ],
  2. Restart Hyper