d3 / d3-shape

Graphical primitives for visualization, such as lines and areas.
https://d3js.org/d3-shape
ISC License
2.48k stars 308 forks source link

fix: remove build warning #182

Closed ethanneff closed 3 years ago

ethanneff commented 3 years ago

Package warning

warn Package d3-shape has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /node_modules/d3-shape/package.json

shayananwar commented 3 years ago

@ethanneff it is not fixed in 3.0.1 version, will this fix release with new version?

wibimaster commented 3 years ago

I had to change with :

  "exports": {
    ".": {
      "umd": "./dist/d3-shape.min.js",
      "default": "./src/index.js"
    },
    "./package.json": "./package.json"
  },
kbqdev commented 2 years ago

I'm still get this warning. Any way fix it?