If the project uses TypeScript, it might just need a tsconfig.json set for ESM.
tsconfig.json
Someone else ran into that issue recently. Full solution here: