I was able to fix it. The library was consumed in the wrong way, using imports via @mylib\lib\my-component instead of referring directly to the library.