Skip to content

webpack-dev-server v4.0.0-beta.0 not needed #270

@nilzona

Description

@nilzona

I have noticed that if I create a react single-spa application with create-single-spa it will setup my project with webpack-dev-server v4.0.0-beta.0.

If I modify package.json so that webpack-dev-server is the LTS like e.g. 3.11.2 it stops working with the error

Uncaught Error: application '@qmfe/sspa-react2' died in status LOADING_SOURCE_CODE: "does not export a unmount function or array of functions"
    at transformErr (app-errors.js:87)
    at handleAppError (app-errors.js:6)
    at load.js:113

BUT, if I modify the webpack.config.js and add target: ['web'] it works again. Just a heads up that's the case. Maybe it should be used instead of a beta.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions