Skip to content

Webpack < 5 used to include polyfills for node.js core modules by default #13

Open
@radulescuandrew

Description

@radulescuandrew

Hello,

The library is no longer working with react-script@5x.

ERROR in ./node_modules/simple-hmac-auth/lib/Client.js 16:31-46
Module not found: Error: Can't resolve 'http' in '.../node_modules/simple-hmac-auth/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.

If you want to include a polyfill, you need to:
        - add a fallback 'resolve.fallback: { "http": require.resolve("stream-http") }'
        - install 'stream-http'
If you don't want to include a polyfill, you can use an empty module like this:
        resolve.fallback: { "http": false }

There is any fix scheduled? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions