{
    "esModuleInterop": true,
    "compilerOptions": {
        "allowSyntheticDefaultImports": true,
        // Type checking
        "alwaysStrict": true,
        "strictNullChecks": true,
        // Emit
        "outDir": "dist",
        "sourceMap": true,
        // Language and environment
        "target": "es2021",
        // JavaScript support
        "allowJs": true,
        // Modules
        "module": "ES2020",
        "moduleResolution": "node"
    },
    "ts-node": {
        "compilerOptions": {
            "module": "commonjs"
        }
    }
}

{
    "esModuleInterop": true,
    "compilerOptions": {
        "allowSyntheticDefaultImports": true,
        // Type checking
        "alwaysStrict": true,
        "strictNullChecks": true,
        // Emit
        "outDir": "dist",
        "sourceMap": true,
        // Language and environment
        "target": "ES6",
        // JavaScript support
        "allowJs": true,
        // Modules
        "module": "CommonJS",
        "moduleResolution": "node"
    },
    "ts-node": {
        "compilerOptions": {
            "module": "commonjs"
        }
    }
}

Change target to ES6 and module to CommonJS.
Change target to ES6 and module to CommonJS.
