Import package installed from github

Viewed 2178

I just installed a package that is not in npm registry via github like this

yarn add git+https://github.com/azazdeaz/react-color-picker-wheel.git

Now I can see it in my package.json file like this

"react-color-picker-wheel": "git+https://github.com/azazdeaz/react-color-picker-wheel.git"

However when I import it like this

import ColorPickerWheel from 'react-color-picker-wheel'

I get this error Uncaught Error: Cannot find module 'react-color-picker-wheel'

1 Answers
Related