Skip to content

Production is broken after 4.8.5 #1283

@chrisbutler

Description

@chrisbutler

Description

We have been using RHL with Recompose for a long time, but suddenly our production server cannot start (development is fine).

export default compose( hot(module), withSomeHOC, )(HotReloadedParent)

Upgrading past version 4.8.5 produces the following error when trying to run the code in production mode:

TypeError: b.apply is not a function at node_modules/recompose/dist/Recompose.cjs.js:810:18

Seemingly the signature of hot(module) has changed in production mode after the above stated version?

Expected behavior

It should continue to work as before. Production should ABSOLUTELY NEVER be affected by RHL

Actual behavior

Production build/deployment fails because of code error

Environment

React Hot Loader version: 4.8.5

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