HMR error when using a subdirectory #61

Closed
opened 2025-08-09 17:14:51 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @JoshClose on 5/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?

*Originally created by @JoshClose on 5/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?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#61
No description provided.