cli
cli copied to clipboard
waiting for framework port 3000
Describe the bug
- Behavior I can't run netlify dev because it says it is waiting for framework port 3000.
Waiting for framework port 3000. This can be configured using the 'targetPort' property in the netlify.toml◈ Command failed with exit code 1: npm run start. Shutting down Netlify Dev server
Steps to reproduce
- sudo npm install
- sudo netlify dev
Configuration
No response
Environment
netlify-cli 10.17.4
Are you using node 18? If so try to use node 16 for now, this should fix it. We are working on this, see #4845.
Hi @danez , I'm using node v16.6.1
and still get the same Waiting for framework
issue. Please help. Thanks!
Guys, using netlify dev --targetPort 5173
works for me
Oh @lucasfontesgaspareto I found out that the issue is when you use svelte
runner (when choose these options)
Will not work if using Svelte
But, will work perfectly when using Vite
These issues should be fixed now as of version 12.0.2. If it still appears please reopen with an example.
@danez still get this with: netlify-cli/12.0.6 darwin-arm64 node-v16.14.2
VITE v3.1.3 ready in 162 ms
➜ Local: http://127.0.0.1:5173/
➜ Network: use --host to expose
⠇ Waiting for framework port 3000. This can be configured using the 'targetPort' property in the netlify.toml
only fix is: netlify dev --targetPort 5173
@logemann Yes this is reported in https://github.com/netlify/cli/issues/5131 and already actively worked on.
For those building Astro.js sites, this fixed it for me.
astro.config.mjs
export default defineConfig({
adapter: netlify(),
output: "server",
server: {
host: true,
port: 3000
}
});
Run command:
netlify dev -c "yarn astro dev" --targetPort 3000
If anyone else is running into this issue with Astro, adding this to netlify.toml
fixed the issue for me:
[dev]
command = "yarn dev"
framework = "#custom"
targetPort = 3000
If anyone else is running into this issue with Astro, adding this to
netlify.toml
fixed the issue for me:[dev] command = "yarn dev" framework = "#custom" targetPort = 3000
or just update the CLI.
If anyone else is running into this issue with Astro, adding this to
netlify.toml
fixed the issue for me:[dev] command = "yarn dev" framework = "#custom" targetPort = 3000
or just update the CLI.
I did update the CLI but was still experiencing the issue with astro websites that use svelte.
I am still facing this issue.. any update?
I am still facing this issue.. any update?
i managed to fix it by removing the homepage: "..."
from package.json and adding:
[dev]
command = "npm start"
targetPort = 3000
in my netlify.toml file i'm using node18 and cra
I am still facing this issue and no solution working for me...any updates on this? I'm just using also the latest CLI version
I'm getting this issue again with Astro 3. As it's with Astro 3 + Node 18, I have created a new issue here: https://github.com/netlify/cli/issues/5978
Any update on this? I am on the latest Node LTS v21.4.0, and facing this issue.
my netlify.toml features [dev] section as following:
[dev] command = "make serve URL=http://localhost:8888/" framework = "hugo" targetPort = 8888
also facing this issue with expo apps