datagouv / edigeo-parser

Blazing fast parser for EDIGEO files
MIT License
8 stars 3 forks source link

Use default to require turf pointToLineDistance #1

Closed othke closed 6 years ago

othke commented 6 years ago

I get the following error when parsing an edigeo sheet.

TypeError: pointToLineDistance is not a function

turf now use exports.default and must be import withconst pointToLineDistance = require('point-to-line-distance').default

jdesboeufs commented 6 years ago

Thx for this issue report and PR!! 🎉

@turf/point-to-line-distance 5.1.6 breaks compatibility with 5.1.5… For consistency I prefer pin 5.1.5