d3 / d3-scale

Encodings that map abstract data to visual representation.
https://d3js.org/d3-scale
ISC License
1.59k stars 286 forks source link

Usage latest version (4.0.0) with react native #248

Closed Systerr closed 3 years ago

Systerr commented 3 years ago

Hi. I have a project build with react native that uses d3-scale. Before version 4 all works good. With version 4 i receiving error

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

On codebase it used as

import { scaleLinear } from 'd3-scale'
wilbo commented 3 years ago

I got the same issue with version 3.0.1 from d3-array. Any clue?

mbostock commented 3 years ago

https://github.com/facebook/react-native/issues/28710 https://github.com/react-native-community/cli/issues/1168

avneesh74 commented 2 years ago

Hi. I have a project build with react native that uses d3-scale. Before version 4 all works good. With version 4 i receiving error

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

On codebase it used as

import { scaleLinear } from 'd3-scale'

Did you find any solution for this, I am also facing this issue

NensiKasundra commented 2 years ago

same issue.

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

Any solution for this.

kbqdev commented 2 years ago

+1 any help ! Please.

aymather commented 2 years ago

+1 please.. anybody with an answer... please..... dies slowly

Fil commented 2 years ago

As Mike mentioned above, this is a React Native tooling bug: https://github.com/react-native-community/cli/issues/1168 We don't intend to work around it.