+
Skip to content

@analogjs/platform@1.16.1 and @analogjs/vite-plugin-angular@1.16.1 break hot reload of dev server #1733

@DarthRainbows

Description

@DarthRainbows

Please provide the environment you discovered this bug in.

WSL/Ubuntu, Windows

Which area/package is the issue in?

Don't know / other

Description

I ran into a problem with hot reloading my dev server after performing a pnpm upgrade of my dependencies. After starting the server, the app loads correctly. I can then make a single change to the codebase, and the hot reload works fine. A second change to the codebase breaks the hot reload: the application appears to build, and the client refreshes, but the client receives the old code from the first change (as if I had not made the 2nd change at all). Subsequent edits repeat this behavior: the client never receives any updated code.

I traced this error down to these two npm packages. I can upgrade any other dependency without issue, but if either or both of these packages is updated to 1.16.1, hot reload is broken.

Please provide the exception or error you saw

No exceptions or errors logged.

Other information

Minimal reproduction: https://github.com/DarthRainbows/minimal-hot-reload-repro

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载