d3 / d3-color

Color spaces! RGB, HSL, Cubehelix, CIELAB, and more.
https://d3js.org/d3-color
ISC License
400 stars 91 forks source link

Unexpected token 'export' while update from 2.x.x to 3.x.x #112

Closed KhizerRehan closed 1 year ago

KhizerRehan commented 1 year ago

Getting following error on update from 2.0.0 to "d3-color": "^3.1.0",

 node_modules/@swimlane/ngx-charts/node_modules/d3-color/src/index.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){export {default as color, rgb, hsl} from "./color.js";

However things working fine in 2.0.0 version

tsconfig.spec.json

{
  "extends": "../tsconfig.json",
  "compilerOptions": {
    "outDir": "../dist/out-tsc/spec",
    "baseUrl": ".",
    "module": "CommonJS",
    "target": "ES2015",
    "types": [
      "jest"
    ]
  },
  "include": [
    "test/**.ts",
    "**/*.spec.ts",
    "**/*.d.ts",
    "test*.ts",
    "environments/environment.ts"
  ]
}
H0uston commented 1 year ago

@mbostock Hi! Would it be fixed?

juztinlazaro commented 1 year ago

any solution?