rx-http-request icon indicating copy to clipboard operation
rx-http-request copied to clipboard

Doesn't work in webpack 5

Open soanvig opened this issue 3 years ago • 1 comments

Hello. Library doesn't work with webpack 5. Even after changing node parameter to resolve.fallback, as stated in migration docs, the library doesn't work because:

ERROR in ./node_modules/verror/node_modules/extsprintf/lib/extsprintf.js 6:15-30
 Module not found: Error: Can't resolve 'util' in '/app/node_modules/verror/node_modules/extsprintf/lib'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.

And many similar errors.

It seems, that rx-http-requests has a lot of dependencies to node

soanvig avatar Nov 21 '20 09:11 soanvig

Hi,

I think you have just to follow what is written in the README here

With that I have no problem to build with webpack in many projects in production.

akanass avatar Nov 21 '20 10:11 akanass