Hyperline / hyperline

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

Unmet peer dependency error "react@15.x.x" #159

Open eriknyk opened 6 years ago

eriknyk commented 6 years ago

just enabled the plugin and I got this error:

image

Regards.

liloow commented 6 years ago

I found a dirty workaround in the meantime in case anyone is interested: #155

rodolfoviolac commented 5 years ago

+1

jericopulvera commented 5 years ago

I fixed this using these steps.

  1. cd ~/.hyper_plugins/local
  2. git clone https://github.com/Hyperline/hyperline.git
  3. cd ~/.hyper_plugins/local/hyperline
  4. npm install react
  5. specify hyperline as localplugin

from this

  plugins: ['hyperline'],
  localPlugins: [],

to this

  plugins: [],
  localPlugins: ['hyperline'],

Basically what happens is that hyperline plugin is requiring react as it's dependency and it can't find it in the node_modules since it is not defined in its package.json, and you can't just install the react dependency in the ~/.hyper_plugins/node_modules since it would be overwritten everytime you install a plugin or the hyper plugins are updated. So to fix this you need to move it to the local plugins and install react depedency.

cholojuanito commented 5 years ago

@jericopulvera's fix works. https://github.com/Hyperline/hyperline/issues/159#issuecomment-468317820 Can confirm on Ubuntu 18.04

JoanComasFdz commented 5 years ago

I just followed the steps from @jericopulvera and now there is no error, but there is no status bar either.

I am on Windows 10 1709 16299.967 using Hyper 2.1.2 (stable).

Also it is not listed in the about window.

digitaljhelms commented 5 years ago

This worked for me as well (with the added step of running npm run build after installing the React dependency).