Code is working fine using base code but if I create a library of that base code above error is coming.