I just needed to reinstall the packages I have. Since I am using bun, I had to do the following commands:
> rm bun.lockb
> rm -rf node_modules
> bun i
The problem came from a corrupt and conflicting bun.lockb, and to ensure it's not corrupt, I had to remove it and the node_modules associated to it, and then reinstall the packages.