Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Hot reload import For Webpack 4 (draft - will provide Reproduction Repos in few days) #746

Open
5 tasks done
Wakanlolz opened this issue Apr 8, 2024 · 0 comments
Open
5 tasks done

Comments

@Wakanlolz
Copy link

Describe the bug

Problem:
When running the server with npm run dev and adding a new component file, the hot reload feature does not detect and import the new component automatically. Instead, it requires stopping the server and restarting it for the new component to be recognized.

Environment:

  • webpack: 4.46.0
  • webpack-cli: 3.3.12

Observations:

  • The hot reload feature is not functioning as expected when adding new component files.
  • A workaround involves manually stopping the server and re-running npm run dev to incorporate the new component.

References:

Reproduction

WIP

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (8) x64 Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz
    Memory: 5.80 GB / 23.79 GB
  Binaries:
    Node: 16.14.2 - C:\Program Files\nodejs\node.EXE
    npm: 8.6.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 7.9.5 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (123.0.2420.81)
    Internet Explorer: 11.0.22621.1

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant