You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okay! This is a oft-reported issue in tsdx's Babel configuration. They have a recommended workaround, compiling for node, which also removes all fo the annoying Babel transform stuff.
Hi @tmcw, I got here after deprecation of @mapbox/geojsonhint, so thank you for creating this replacement.
I tried this very basic example in node, but it throws
invalid_type
.The example works perfectly fine in your tests, so I tracked the problem and found that the typescript build generates an invalid code.
look at this:
in file
dist/type.d.ts
in file
dist/check-geojson.cjs.development.js
The variable
GEOJSON_TYPES
concats a Set and an Array, which causes the variable to not hold the expected values.I only know basic stuff in typescript, so I don't know if this is a config problem
The text was updated successfully, but these errors were encountered: