Skip to content

@rspack/[email protected] not reflecting code changes after recompilation #33106

@rohitparamount

Description

@rohitparamount

Current Behavior

When I make changes to the code, the dev server recompiles, but the updated changes are not reflected in the browser. It continues to serve the previous version of the code.

Expected Behavior

After recompilation, the dev server should serve the latest code changes and reflect them in the browser.

GitHub Repo

https://github.com/mrohit404/rspack-poc

Steps to Reproduce

  1. yarn nx serve rspack-poc
  2. Make some change in one of the files.
  3. Recompiled and reloaded in browser but not with recent changes.

Nx Report

yarn run v1.22.22
$ nx report

 NX   Report complete - copy this into the issue template

Node           : 22.14.0
OS             : darwin-x64
Native Target  : x86_64-macos
yarn           : 1.22.22

nx                     : 21.6.1
@nx/js                 : 21.6.1
@nx/jest               : 21.6.1
@nx/eslint             : 21.6.1
@nx/workspace          : 21.6.1
@nx/angular            : 21.6.1
@nx/cypress            : 21.6.1
@nx/devkit             : 21.6.1
@nx/eslint-plugin      : 21.6.1
@nx/module-federation  : 21.6.1
@nx/rspack             : 21.6.1
@nx/web                : 21.6.1
@nx/webpack            : 21.6.1
typescript             : 5.6.3
---------------------------------------
Cache Usage: 0.00 B / 46.04 GB

✨  Done in 3.87s.

Failure Logs

No failure.

Package Manager Version

yarn -> v1.22.22

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions