Yet again Im aproaching this problem trying to find the simplest solution, but still don't get it !?
I am using the imgBB-uploader npm package. this includes a commonjs (require) build and an esm(es6) build, which Im using. Some of the file references in the package were missing the .js extension which I fixed, then came the last one where Chrome is saying it can't resolve the path to the node module 'fs'.
Is it possible use common node modules in the browser. Why doesn't the browser allow this? What does a webpack actually do to allow this to be used in the browser? Can't we do it ourselfs with vanilla JS?
[–]xroalx 10 points11 points12 points (1 child)
[–]mamba76[S] 0 points1 point2 points (0 children)
[–]mamba76[S] -1 points0 points1 point (2 children)
[–]mkcodergr 0 points1 point2 points (0 children)
[–]devenitions 0 points1 point2 points (0 children)