can't believe i just spent 2 hours debugging a project and it turns out the issue was some stupid dependency conflict with npm.