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
[Bug] Local development server broken #1109
Comments
I also experience the same problem |
This happens to me on projects within yarn workspaces / monorepo. |
Same with |
Also experiencing this. What appears to be happening is the hostname is being interpreted as the protocol, and the port as the hostname upon a hot reload - then the logic assumes the port wasn't set and tries again to load it, this time correctly getting 3000 (again). The module id passed into webpack is:
which then gets reformatted as: |
I ran into this issue too (using npm). As a short term measure, I installed webpack-dev-server 3.2.1 as a dependency in my project's package.json, which seemed to fix it for now. |
I wonder if the webpack-dev-server is manipulating the config object passed, so |
Guys, read this PR, related to this bug: webpack/webpack-dev-server#1664 |
this is caused by an updateCompiler call that was added to the Server.js constructor. webpack/webpack-dev-server#1664 is unrelated. the config gets adjusted somehow in addEntries and createDomain gets called. i tried changing host (currently i don't have time at the moment to dig into a fix, but this seems like an issue for webpack-dev-server where the initial config isn't properly parsed when |
forgot to add that removing the |
just took a look at webpack config for host and ran across this issue webpack/webpack-dev-server#1778 stating the protocol should not be included in the webpack host config, so i take back that it's an issue on the webpack-dev-server side 😄 just did a quick test moving the |
Also experienced this issue |
I get the same error, I've tried adding |
Find a workaround, add the following to packages.json, then
|
While unrelated, we have released another patch version. Please upgrade to this version and ensure this issue still exists. Thanks! |
@tannerlinsley I first encountered this bug on 7.0.8 + 7.0.9, with npm, so I think it's safe to say it does :/ Edit: Saw that you just now updated to 7.0.9, so am trying again now Edit 2: Tried again (and looking at the commits), no change |
Same, still happens with 7.0.9, but this worked for me
|
Fixed in #1135 |
Not sure if this is related to the While I still see a message in my browser console:
Nothing is actually updated. Yet when I hit reload in my browser, the new styles are fetched. So change detection works, and auto-recompilation works, it is just not hot-updated for some reason. FYI |
Any update on this? |
@dgavara The issue is still seen, atleast for me (today's install of react-static) |
You can temporarily use #1135 by checking it out, installing dependencies, building it and using a local path to react-static/packages/react-static in your project's package.jsoj |
@tannerlinsley Looks like the PR for this fix is merged but not released? |
Correct, count on a release in the next 48 hours. |
Great! Thanks @tannerlinsley. |
@tannerlinsley Is anything changed in v7.0.10? I just see versions updated. |
Great. I still see the issue. Do I need to do anything else other than updating the packages? |
Do you have custom devServer configs? |
All I have is |
Remove the http:// from the host. |
Nice. That works! Thanks @tannerlinsley. This helped. We can move forward with v7 upgrade. |
This just started happening to me today on a 6.3.9, but it wasn't happening last week! I've added the workaround
Just letting you know as obviously the proper solution would be to upgrade to 7.x |
@Trolleymusic The webpack-dev-server released a version 3.4.1, that fixes this bug, I suppose. At least for applications that I work, the bug is gone away. 👍 Links for reference (for future readings): webpack/webpack-dev-server#1754 🤝 |
I'm noticing that fresh installs of React Static displays an empty page in develop mode (
$ react-static start
) and the console outputsSyntaxError: The URL 'http:/[http//localhost]:300' is invalid
from SockJS. This occurs after running yarn upgrade in a previously working repo in either RS 6.3.x or 7.0.x. Seems that this is related to the 3.3.0 update of webpack-dev-server (possibly this change?).Adding this to my project's package.json and reinstalling dependencies fixes development builds. This confirms that something is borked in an update of webpack-dev-server.
Environment
Steps to Reproduce the problem
npx react-static create
yarn upgrade
to install latest dependenciesyarn start
http://localhost:3000
The text was updated successfully, but these errors were encountered: