You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When bundling a react component using esbuild and trying to execute it within the JS context, it is unable to require the util package even though it is provided.
Doesn't js.commonjs-core-modules-replacements provide that?
Only if you provide an explicit mapping, but it might still be found in node_modules anyway which I think is what happens in the working snippet.
Maybe try to see what happens if you set js.commonjs-core-modules-replacements to stream:stream-browserify,util:util.
If that still does not work, I think we need a reproducer to figure out why it can't be loaded.
When bundling a react component using esbuild and trying to execute it within the JS context, it is unable to
require
theutil
package even though it is provided.This throws an error
But this does not
The part of the
serverScript
throwing the errorTypeError: Cannot load module: 'util'
esbuild
The text was updated successfully, but these errors were encountered: