Import package installed from github

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

yarn add git+

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

"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'

Is it possible to dynamic import packages from github like you’ve done manually?

Not sure, you may try

Solution here.

1 Like