Skip to content

Hot Module Reloading Broken when using CSS modules #838

Open
@trainiac

Description

@trainiac

Version

12.2.1

Reproduction link

https://github.com/trainiac/hmr-vue-loader-12-bug

Steps to reproduce

  1. Run the server
    $ git clone git@github.com:trainiac/hmr-vue-loader-12-bug.git
    $ cd hmr-vue-loader-12-bug
    $ npm install
    $ node ./server.js

  2. Edit anything in the script section of App.vue and save

  3. Notice the error in the console.

What is expected?

Hot update

What is actually happening?

An error is being thrown

Uncaught TypeError: Cannot read property 'hot' of undefined


I've tested vue-loader 11.0.0 and this bug does not exist. I also don't get this bug without using CSS modules.

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