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

Page repeatedly refreshes even when ?reload=false is specified #370

Open
RalphORama opened this issue Nov 22, 2019 · 0 comments
Open

Page repeatedly refreshes even when ?reload=false is specified #370

RalphORama opened this issue Nov 22, 2019 · 0 comments

Comments

@RalphORama
Copy link

RalphORama commented Nov 22, 2019

I'm attempting to integrate Webpack with KeystoneJS for a CMS I'm building. Currently, Webpack properly compiles & serves my React front end, but causes repeated reloading when trying to access the Keystone backend. This is caused by webpack-hot-middleware running into an error (see below) and auto-refreshing the page.

I believe this error is caused by my use of webpack-hot-middleware, as the hot-reloading functionality is what's causing the issue.

Ideally, I'd like to make it so react-hot-middleware ignores everything under localhost:3000/admin

  • Operating System: macOS 10.13.6
  • Node Version: 13.0.1
  • NPM Version: 6.12.0
  • webpack Version: 4.41.2
  • ${package} Version: 2.25.0

Errors

Server: none

Client (Chrome 78.0.3904.108 (Official Build) (64-bit)):

[HMR] connected
[HMR] Checking for updates on the server...
 GET http://localhost:3000/admin/a91a1112f99fda33112c.hot-update.json 404 (Not Found)
[HMR] Cannot find update (Full reload needed)
[HMR] (Probably because of restarting the server)
[HMR] Reloading page

Code

How Do We Reproduce?

  1. Clone the repo
  2. yarn install
  3. npm run dev
  4. Visit http://localhost:3000/admin in browser
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