Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage latest version (4.0.0) with react native #248

Closed
Systerr opened this issue Jun 13, 2021 · 7 comments
Closed

Usage latest version (4.0.0) with react native #248

Systerr opened this issue Jun 13, 2021 · 7 comments

Comments

@Systerr
Copy link

Systerr commented Jun 13, 2021

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
Copy link

wilbo commented Jun 29, 2021

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

@mbostock
Copy link
Member

@avneesh74
Copy link

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
Copy link

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
Copy link

kbqdev commented Jun 15, 2022

+1 any help ! Please.

@aymather
Copy link

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

@Fil
Copy link
Member

Fil commented Jul 15, 2022

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

@d3 d3 locked as resolved and limited conversation to collaborators Jul 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

8 participants