-
Notifications
You must be signed in to change notification settings - Fork 357
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
After upgrade to 10.11.1 netlify dev hangs on "waiting for port" #4845
Comments
Hey all 👋 |
Not sure if it helps @MykalMachon, I removed webpack and babel and switched to esbuild. Now everything is working again and my dev server starts :) |
A simple workaround is to use node 16 for now. The problem lies in the name resolution for |
@danez tried using Node 16 before I came here, it didn't change anything. @MykalMachon scratch my previous reply, it just started happening again. Edit:
Right after the ping I ran |
Here is the output on Node 16:
|
It looks like that eleventy is running on port |
@danez, you lifesaver! :) Amazing, thank you very much!! It's weird though, there was nothing anywhere that configured 8081, I tried changing the port via So I changed the package.json to include Thanks again! |
Worth noting that this might be an issue with Node 17/18 in the latest version of the CLI. Using Node 16 without issue. Here is the issue I raised on the community: https://answers.netlify.com/t/netlify-cli-waiting-for-framework-port/73329/3 |
Yes hopefully, once this is merged and we update it should solve all these problems: dwmkerr/wait-port#84 |
Looks like it was merged and released |
Could you try using version 12.0.2 and see if it works better? |
It works! Thanks! |
@paulrudy FWIW - In my case the issue was that I had killed the app while there was a type error causing it to fail to compile. I forgot about this when I tried to fire it up the next morning. I finally realized my error after a couple of hours of installing every possible combination of Node version, Netlify version, and Angular CLI version. It's embarrassing, but maybe it's worth posting if this helps someone. |
updating to v12.0.2 of netlify dev solved this for me as well. Very odd because it was only my Astro sites that were experiencing issues. Thanks for all the hard work ♥ |
Describe the bug
Upgraded to latest 10.11.1, running
netlify dev
It just keeps hanging on "waiting for port forever"
⠋ Waiting for framework port 8080. This can be configured using the 'targetPort' property in the netlify.toml
No matter if I add the
targetPort
to netlify.toml or not, or also whhich port (tried 8080, 8888, 8081 etc)My
package.json
scripts & deps:Steps to reproduce
Upgrade to latest version, use netlify.toml and package.json i posted here (I assume)
Configuration
Environment
❯ npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli
System:
OS: macOS 12.4
CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
Memory: 919.10 MB / 32.00 GB
Shell: 3.4.1 - /usr/local/bin/fish
Binaries:
Node: 18.6.0 - /usr/local/bin/node
npm: 8.13.2 - /usr/local/bin/npm
npmPackages:
netlify-cli: ^10.11.1 => 10.11.1
npmGlobalPackages:
netlify-cli: 10.11.1
The text was updated successfully, but these errors were encountered: