Ionic library pages are not getting loaded


I am creating an ionic-3 library which consists of components, how ever i would like to talk about one specific component namely a date picket which opens up an ionic modal containing a page containing five other tabs, i have converted this into a library in my bitbucket repository, but while trying to open up the parent tab in a modal from a file that is present in the node-modules folder, i get an error ‘Invalid link’. so incase anyone has a solution kindly help me out of this.