webgl-heatmap
webgl-heatmap copied to clipboard
Cannot resolve module 'fs' in webgl-heatmap
I got this error at compile time, Any idea ? my app is a "pure" front app, no js back app
+1
The same for me using react-map-gl-heatmap-overlay
+1
+1
+1
Apparently in React they've removed the 'fs' module. https://stackoverflow.com/a/48856076/9813538. Maybe that is the case for other front-end frameworks too?
Anyways, I found a solution. This guy has made a fork of the repo and removed the 'fs' requirements, so now the import works, https://github.com/jordmccord/webgl-heatmap. You can just do npm install https://github.com/{USER}/{REPO}/tarball/{BRANCH} to install it in your project.
Same problem (and other problems) in my attempt to integrate with leaflet-webgl-heatmap in an Angular 9 app;