Leaflet.TileLayer.Fallback icon indicating copy to clipboard operation
Leaflet.TileLayer.Fallback copied to clipboard

Doesn't build

Open Tailslide opened this issue 4 years ago • 2 comments

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 at Object.writeFileSync (fs.js:1460:5) at Object.exports.build (C:\source\principleworx\blazor\Leaflet.TileLayer.Fallback\build\build.js:106:12)

Tailslide avatar Jun 16 '21 16:06 Tailslide

Hi,

Sorry for the late reply.

Indeed, strangely the first time the build is run (and also on first npm install), this error is reported, probably because the build script tries to read a file that does not exist yet.

But on next builds, everything works fine. Therefore you should be good by simply running the build script again.

I do not think I will have the opportunity to debug this myself unfortunately. PR welcome! :-)

ghybs avatar Sep 05 '21 04:09 ghybs

I wound up writing my own from scratch and incorporating it into a fork of leaflet.offline: https://github.com/allartk/leaflet.offline/pull/72

Tailslide avatar Sep 05 '21 16:09 Tailslide