The issue was that i've mounted node_modules from a different environment. I removed the volume mount and ran npm ci in the container and it worked.
node_modules
npm ci