ugh, just spent an hour debugging my project and it turns out the problem was some stupid dependency conflict thanks a lot, npm