geostyler / geostyler-cli

BSD 2-Clause "Simplified" License
22 stars 8 forks source link

ERR_INVALID_ARG_TYPE when specifying `-o` flag #402

Open louwers opened 1 month ago

louwers commented 1 month ago
geostyler-cli -t mapbox  Wegdeel_Vlak_style.sld    

results in the (invalid) output https://github.com/geostyler/geostyler-mapbox-parser/issues/334

 geostyler-cli -t mapbox -o style.json Wegdeel_Vlak_style.sld

Results in the following error:

✖ Error during translation of file "Wegdeel_Vlak_style.sld": TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Object

KaiVolland commented 1 month ago

Maybe specifing the source with -s sld helps. But we will have a look at this.