node-directory-tree icon indicating copy to clipboard operation
node-directory-tree copied to clipboard

Error after upgrade from 2.2.1 to 2.2.2

Open DrMabuse23 opened this issue 5 years ago • 2 comments

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
        }
      }

DrMabuse23 avatar May 06 '19 08:05 DrMabuse23

Hi! I assume it might be related to https://github.com/mihneadb/node-directory-tree/pull/63. @rikberkelder can you please take a look>

mihneadb avatar May 08 '19 07:05 mihneadb

Hi, please try again with 2.2.3 (after https://github.com/mihneadb/node-directory-tree/pull/66).

mihneadb avatar May 12 '19 21:05 mihneadb