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

Never ending "Waiting for framework" in 19.0.3 #7124

Open
Simbul opened this issue Mar 22, 2025 · 6 comments · Fixed by #7135
Open

Never ending "Waiting for framework" in 19.0.3 #7124

Simbul opened this issue Mar 22, 2025 · 6 comments · Fixed by #7135
Labels
status: missing info/reproduction type: bug code to address defects in shipped code

Comments

@Simbul
Copy link

Simbul commented Mar 22, 2025

Describe the bug

Since upgrading to 19.0.3, netlify dev is constantly showing the following message, with a spinner on the left:

⠦ Waiting for framework port 5173. This can be configured using the 'targetPort' property in the netlify.toml

Running the same command with 19.0.2 does not result in the same behaviour. In fact, the wait seems to be over pretty quickly:

✔ Waiting for framework port 5173. This can be configured using the 'targetPort' property in the netlify.toml

This is printed out before the message saying Server now ready on http://localhost:8888

Steps to reproduce

  1. Start in the root of my repo (apologies, this is a private project)
  2. Upgrade netlify-cli to 19.0.3
  3. Run netlify dev
  4. Everything seems to be working fine, but the CLI keeps "waiting for framework port 5173"

Configuration

[build]
command = "react-router build"
publish = "build/client"

[dev]
command = "react-router dev"

Environment

  System:
    OS: macOS 15.3.2
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 3.13 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.10.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.9.2 - /usr/local/bin/npm
  npmGlobalPackages:
    netlify-cli: 19.0.3
@Simbul Simbul added the type: bug code to address defects in shipped code label Mar 22, 2025
@ffaubert
Copy link

I'm having the same issue, had to downgrade back to 19.0.2

@serhalp serhalp added the status: triage Issues that need to be combed over label Mar 24, 2025
@ndhoule
Copy link
Contributor

ndhoule commented Mar 24, 2025

@Simbul @ffaubert I'm unable to reproduce this myself, but I can definitely investigate more if either of you can put together a minimal reproducible example! Doesn't need to be your full app, just enough to consistently trigger this behavior.

@serhalp serhalp added status: missing info/reproduction and removed status: triage Issues that need to be combed over labels Mar 24, 2025
@ffaubert
Copy link

@ndhoule It seems to be an issue with netlify and vite. I put together a very simplistic test case at https://github.com/ffaubert/netlify-cli-test.

To reproduce after npm install, run netlify dev and then make a change to public/index.html and you'll see
⠋ Waiting for framework port 5173. This can be configured using the 'targetPort' property in the netlify.toml
forever.

Also new in v19.0.3 at startup I see:
MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added to [process]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(Use node --trace-warnings ... to show where the warning was created)
(node:61086) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGTERM listeners added to [process]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit

That was not there in 19.0.2

Thank you for investigating this!

@ndhoule
Copy link
Contributor

ndhoule commented Mar 25, 2025

@ffaubert Thanks for the repro! I'm seeing the EventEmitter warning, but I'm not able to reproduce the behavior. I'm on Linux, which might explain the difference; I'll pair up with a coworker who runs macOS to see if this is a platform-specific issue.

I'll keep you both posted--thanks for your patience in the meantime.

@serhalp
Copy link
Collaborator

serhalp commented Mar 25, 2025

@Simbul @ffaubert I think I may have a fix for this in #7135. Could you give it a try and let me know if it's fixed?

npm i -g netlify-cli@19.0.3-pre.9266a2d

(Note that this won't fix the MaxListenersExceededWarning, just the hanging netlify dev)

@Simbul
Copy link
Author

Simbul commented Mar 25, 2025

Thank you @serhalp. Unfortunately, I'm still seeing the same behaviour on the version you specified

$ netlify version
netlify-cli/19.0.3-pre.9266a2d darwin-x64 node-v23.10.0

When using netlify dev, the message ⠹ Waiting for framework port 5173. This can be configured using the 'targetPort' property in the netlify.toml is always printed as the last line of the server output (i.e. the same behaviour from my initial post).

@serhalp serhalp reopened this Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: missing info/reproduction type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants