It seems adding
"compilerOptions": { "esModuleInterop": true, }
in my tsconfig.json resolved the issue.