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

Add support to React Native #2004

Merged
merged 1 commit into from
Jan 18, 2021
Merged

Add support to React Native #2004

merged 1 commit into from
Jan 18, 2021

Conversation

r0b0t3d
Copy link
Contributor

@r0b0t3d r0b0t3d commented Jan 17, 2021

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:

Copy link
Collaborator

@mfedderly mfedderly left a comment

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
Member

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