I've got the same error but in my case the reason was the attempt to try to share "ts-lib" via Module federation (probably in combination with using a Shared worker)