How to importangular nested library in main app?

I have created a grid library which I have used in ‘xyz’ library. when I access it in xyz , it works fine. but when I am trying to use xyz library in main-app it is throwing error…

Did we need to import grid library in main app or its not required?

enter image description here