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

TypeError: turfBBox is not a function #1545

Closed
arunasank opened this issue Dec 6, 2018 · 2 comments
Closed

TypeError: turfBBox is not a function #1545

arunasank opened this issue Dec 6, 2018 · 2 comments

Comments

@arunasank
Copy link

I am trying to use the v7.0.0-alpha.1, but I see this error, when a call to turf.lineSplit is made

0 tiles processed in 1s/Users/arunasank/berkeley/old-pipeline/node_modules/turf/dist/turf.js:12203
            else if (geojson.type === 'Feature') bbox = turfBBox(geojson);
                                                        ^

TypeError: turfBBox is not a function
    at rbush.tree.toBBox (/Users/arunasank/berkeley/old-pipeline/node_modules/turf/dist/turf.js:12203:57)
    at rbush.tree.search (/Users/arunasank/berkeley/old-pipeline/node_modules/turf/dist/turf.js:12119:69)
    at splitLineWithPoint (/Users/arunasank/berkeley/old-pipeline/node_modules/turf/dist/turf.js:15054:27)
    at /Users/arunasank/berkeley/old-pipeline/node_modules/turf/dist/turf.js:14999:27
    at /Users/arunasank/berkeley/old-pipeline/node_modules/turf/dist/turf.js:1326:21
    at geomEach (/Users/arunasank/berkeley/old-pipeline/node_modules/turf/dist/turf.js:1214:25)
    at flattenEach (/Users/arunasank/berkeley/old-pipeline/node_modules/turf/dist/turf.js:1318:9)
    at splitLineWithPoints (/Users/arunasank/berkeley/old-pipeline/node_modules/turf/dist/turf.js:14992:9)
    at Object.lineSplit (/Users/arunasank/berkeley/old-pipeline/node_modules/turf/dist/turf.js:14976:20)
    at givePolygons.features.forEach (/Users/arunasank/berkeley/old-pipeline/map.js:47:39)
@rlueder
Copy link

rlueder commented Nov 20, 2019

related to #1478

@mfedderly
Copy link
Collaborator

We aren't really supporting that v7.0.0 series of releases. I'm going to close this but feel free to reopen if this comes up in the 6.x or the future 7.x branches.

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

No branches or pull requests

4 participants