but shp(await file.raw.arrayBuffer()); throws out an error
Uncaught (in promise) Error: Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html
at h.readEndOfCentral (shpjs.js?v=9c11b5bb:1045:63)
at h.load (shpjs.js?v=9c11b5bb:1065:40)
at shpjs.js?v=9c11b5bb:290:23
at async unzip_default (shpjs.js?v=9c11b5bb:6488:3)
at async parseZip (shpjs.js?v=9c11b5bb:6970:15)
at async Module.loadGeojson (shp.ts:61:24)
I am working with vue3 to load a shp file as shown below, this shp file can work out in other shapefile based software
await file.raw.arrayBuffer() outputs
ArrayBuffer(59664156) byteLength: 59664156
but shp(await file.raw.arrayBuffer()); throws out an error
shpjs 's version is "^5.0.1".