Skip to content

Uncaught ReferenceError: __webpack_dev_server_client__ is not defined #2006

Closed
@bureson

Description

@bureson
  • Operating System: Windows 10
  • Node Version: 11.12.0
  • NPM Version: 6.9.0
  • webpack Version: 4.33.0
  • webpack-dev-server Version: 3.7.0
  • This is a bug
  • This is a modification request

Code

Expected Behavior

Webpack should compile a working bundle.

Actual Behavior

When trying the app in the webpack-dev-server mode (having the webpack-dev-server as part of the URL enabling hot reloading), browser reports a following error:

Uncaught ReferenceError: __webpack_dev_server_client__ is not defined

I believe it is coming from the following line introduced in version 3.7.0:

const Client = __webpack_dev_server_client__;

Where __webpack_dev_server_client__ doesn't seem to be defined.

For Bugs; How can we reproduce the behavior?

For Features; What is the motivation and/or use-case for the feature?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions