Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

HMR error when using a subdirectory #1650

Closed
JoshClose opened this issue May 17, 2018 · 1 comment
Closed

HMR error when using a subdirectory #1650

JoshClose opened this issue May 17, 2018 · 1 comment

Comments

@JoshClose
Copy link

JoshClose commented May 17, 2018

I'm getting the same error from issue #1204 but only when my url has subdirectories. A path of /path will work fine, but /subdirectory/path does not. The request for __webpack_hmr will be /subdirectory/dist/__webpack_hmr. If I set HotModuleReplacementEndpoint the path will then be /subdirectory/dist/dist/__webpack_hmr. It seems as though it's not taking the application root into account and only appending on the end.

Update:

If I do a default react/redux app and change /counter to /the/counter, it works fine. It must be an issue with something I've done. What could possibly cause the request for __webpack_hmr to use a different route?

@JoshClose
Copy link
Author

I completely redid it from scratch and it works... I have no clue what I did, but I'll have to watch and make sure it doesn't happen again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant