I highly recommend paying attention to @n1kk answer if you have this problem. You should always import from packages as described in "package.json → exports". Direct imports can cause issues.