question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[HELP] TurfJs breaking React-Native 0.50+ through name property

See original GitHub issue

The library turf-jsts is trying to make the prop name configurable, but React-Native 0.50 crash when it tries to do it on android. The problem is at the turf-jsts.js line 3474.

My solution was convert the staticAccesorrs equal to an empty object, but I know that can create conflicts in the future, so I want to know more about this issue.

line 3474 var staticAccessors = { }; line 3479 // staticAccessors.name.get = function () { return ‘IndexOutOfBoundsException’ }; image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
DenisCarrierecommented, Dec 18, 2017

@Jose4gg I’ve changed the IndexOutOfBoundsException back to ES5. (https://github.com/DenisCarriere/turf-jsts/commit/ece9f6d68c2029cfba829f26e0ba7628c4e690da) and patched turf-jsts, maybe that will do the trick.

Instead of using @turf/turf in your app, why don’t you use the specific modules? You’re bundle size will be a lot smaller and you’ll have a lot more control if you use the ES6 module syntax when you’re bundling your distributed release.

Closing this issue for now, feel free to open if the issue persists.

0reactions
mfedderlycommented, Aug 3, 2021

I don’t have a react-native dev setup at the moment, the staticAccessors code referenced in the original ticket is no longer present in turf-jsts code and the original filer claims this had been fixed for them. If someone can reproduce this on a 6.x or later turf can you please reopen this ticket and @ me? Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced geospatial analysis - Turf.js
Takes one or more features and calculates the centroid using the mean of all vertices. ... of polygon features, filtered by an optional...
Read more >
Attempting to a configurable attribute of a ... - Stack Overflow
I have an issue with @turf/turf the last version, in my react native app. "react-native": "0.58.0",. "@turf/turf": "^5.1.6".
Read more >
Licenses - Ecolands
Remap sequential sourcemaps through transformations to point at the original source code ... Helper function to change the property 'name' of every function....
Read more >
Analyze data with Turf.js and Mapbox GL JS | Help
Using Turf.js, add spatial analysis to our map to solve problems. ... "properties": { "Name": "VA Medical Center -- Leestown Division", "Address": "2250 ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found