After forking a package in git and making my changes, I proceeded to install it using the following command in my terminal:
npm install --save git+https://github.com/hayk94/ddp.js.git
Once installed, I attempted to import the package in my code with this line:
import DDP from 'ddp.js'
Unfortunately, webpack threw an error at me:
ERROR in ./main.js
Module not found: Error: Can't resolve 'ddp.js' in '/Users/hayksafaryan/projects/b2cEmbedLib'
@ ./main.js 23:11-28
@ multi (webpack)-dev-server/client?http://localhost:8080 babel-polyfill ./main.js
webpack: Failed to compile.
Oddly enough, if I install the package from npm, webpack works just fine. Is there another way to handle packages installed through git repositories?