Skip to content

Add support to React Native#2004

Merged
mfedderly merged 1 commit into
Turfjs:masterfrom
r0b0t3d:master
Jan 18, 2021
Merged

Add support to React Native#2004
mfedderly merged 1 commit into
Turfjs:masterfrom
r0b0t3d:master

Conversation

@r0b0t3d

@r0b0t3d r0b0t3d commented Jan 17, 2021

Copy link
Copy Markdown
Contributor

Hi, I'm using this lib with React Native. Here is the warning that I got with latest version 6.2.0

warn Package @turf/bearing has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Volumes/DATA/workspace/outdoorvideo/source/outdoorvideo-app/node_modules/@turf/bearing/package.json
warn Package @turf/distance has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Volumes/DATA/workspace/outdoorvideo/source/outdoorvideo-app/node_modules/@turf/distance/package.json
warn Package @turf/helpers has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Volumes/DATA/workspace/outdoorvideo/source/outdoorvideo-app/node_modules/@turf/helpers/package.json
warn Package @turf/length has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Volumes/DATA/workspace/outdoorvideo/source/outdoorvideo-app/node_modules/@turf/length/package.json
warn Package @turf/midpoint has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Volumes/DATA/workspace/outdoorvideo/source/outdoorvideo-app/node_modules/@turf/midpoint/package.json
warn Package @turf/nearest-point-on-line has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Volumes/DATA/workspace/outdoorvideo/source/outdoorvideo-app/node_modules/@turf/nearest-point-on-line/package.json

References:

@mfedderly mfedderly left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@smallsaucepan

Copy link
Copy Markdown
Contributor

While following up on PR #2513 came across the comment below on the RN repo
react-native-community/cli#1168 (comment)

Ultimately we should probably roll back this PR as it was on RN to fix the problem all along, and it might now be causing other tools problems with Turf. Will confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants