Closed skhaz closed 9 months ago
Can you try import * as turf from '@turf/turf'
documented here - https://turfjs.org/getting-started.
@twelch, same problem
Property 'transformScale' does not exist on type 'TurfStatic'.
It's strange that it was working, I hadn't changed anything. On the other hand, Polygon is working fine.
Oh, I see the others are working for you. There were some missing exports in the past. Can you try the latest 7.x alpha release on npm and see if it's resolved?
@twelch, the alpha release worked fine. Thank you.
Excellent, please feel free to report any new issue with 7.x while it stabilizes. Closing this one.
I'm having a bit of difficulty using this Turf module, others like polygon work perfectly.
I've tried in various ways and they all say the module doesn't exist. I deleted the node_modules and package-lock.json and still couldn't use it.
What am I doing wrong?
No.
No.
No.
Project is a Next.js based (default typescript template).
My
package.json
:My
tsconfig.ts
: