I fixed this by changing from "module": "commonjs" to "module": "esnext" in tsconfig.json. Probably there is issue with import and export for old compiler version.