In fact the problem is not related to the library or the project. It is related to the fact that when doing npm install from local project, it will create a symlink from your node_modules to the local library. But it seems that Angular ng serve command doesn't work finely with this. If you do npm install PATH_TO_LOCAL_LIBRARY_DIST --install-links then it will works as expected.