webgl-heatmap icon indicating copy to clipboard operation
webgl-heatmap copied to clipboard

Cannot resolve module 'fs' in webgl-heatmap

Open pixime opened this issue 6 years ago • 7 comments

I got this error at compile time, Any idea ? my app is a "pure" front app, no js back app

pixime avatar Aug 01 '18 07:08 pixime

+1

Thea-rae avatar Sep 06 '18 02:09 Thea-rae

The same for me using react-map-gl-heatmap-overlay

cedricdelpoux avatar Nov 02 '18 12:11 cedricdelpoux

+1

ghorela3ishan avatar Apr 24 '19 07:04 ghorela3ishan

+1

cristiandley avatar Oct 07 '19 12:10 cristiandley

+1

ivangermanov avatar Nov 26 '19 14:11 ivangermanov

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.

ivangermanov avatar Nov 27 '19 09:11 ivangermanov

Same problem (and other problems) in my attempt to integrate with leaflet-webgl-heatmap in an Angular 9 app;

jcn-ithaca avatar Apr 08 '21 14:04 jcn-ithaca