In old turfjs versions, it was possible to intersect a line and a polygon, like in this example.
But changing the turf.js version to the last one makes it fail, as shown in this other example.
The docs say that the intersect function works only with two polygons, so the error is documented.
Is it possible to use some other function to do that? Is there any example around there showing how to do it?