node-directory-tree
node-directory-tree copied to clipboard
Error after upgrade from 2.2.1 to 2.2.2
Hey i update the package from now on i get
TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
in Typescript could you please fix that ?
my tsconfig :
"compilerOptions": {
"outDir": "./dist/",
"noImplicitAny": false,
"noUnusedLocals": true,
"sourceMap": true,
"rootDir": "./src",
"module": "commonjs",
"moduleResolution": "node",
"types": ["node"],
"target": "es6",
"allowJs": true,
"newLine": "LF"
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.d.ts"]
}
my typescript version :
"dependencies": {
"typescript": {
"version": "2.9.2",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-2.9.2.tgz",
"integrity": "sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==",
"dev": true
}
}
Hi! I assume it might be related to https://github.com/mihneadb/node-directory-tree/pull/63. @rikberkelder can you please take a look>
Hi, please try again with 2.2.3 (after https://github.com/mihneadb/node-directory-tree/pull/66).