Closed streamich closed 1 year ago
In browser environment with current package.json fs is empty object, which results in constants being undefined.
fs
constants
More details here.
With current package.json config:
package.json
browser: { fs: false }
The way require('fs') resolves in Webpack 5 is with an empty object. Which leads to constants being undefined. This should hopefully fix it.
require('fs')
undefined
thanks!
3.1.2
In browser environment with current package.json
fs
is empty object, which results inconstants
being undefined.More details here.
With current
package.json
config:The way
require('fs')
resolves in Webpack 5 is with an empty object. Which leads toconstants
beingundefined
. This should hopefully fix it.