Skip to content

Cannot read property 'watch-run' of undefined #24

@nop33

Description

@nop33

When I execute ./node_modules/.bin/webpack --mode development I get the following error:

/Users/xxxxxxxxxxxxxxxxx/xxx/xxxx/xxxxxxxxxxxxxx/node_modules/webpack-browser-plugin/lib/index.js:154
        if (compilation.compiler._plugins['watch-run']) {
                                         ^
TypeError: Cannot read property 'watch-run' of undefined

The only way I managed to make it work is by replacing
compilation.compiler._plugins['watch-run'] with
compilation.compiler.hooks['watch-run'].

These are the versions of the installed packages

› ./node_modules/.bin/webpack-dev-server --version
webpack-dev-server 3.1.4
webpack 4.12.0

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