For some time now, I’ve used the following command to start Netlify:
netlify dev -c "eleventy --serve --quiet"
This has worked fine for months if not longer. Now when I run it (and my netlify CLI is updated to the latest), I get:
◈ Starting Netlify Dev with Eleventy
✖ Waiting for framework port 8080. This can be configured using the 'targetPort' property in the netlify.toml
◈ Netlify Dev could not connect to localhost:8080.
◈ Please make sure your framework server is running on port 8080
I’ve checked, I don’t have anything blocking 8080. In fact, I can run eleventy --serve --quiet just fine, it’s just failing under netlify dev.
Ok, I tried debugging and I’m seeing something interesting:
⠋ Waiting for framework port 8080. This can be configured using the 'targetPort' property in the netlify.toml wait-port Socket error: Error: connect ECONNREFUSED 127.0.0.1:8080 +0ms
wait-port Socket not open: ECONNREFUSED +0ms
wait-port Socket status is: false +0ms
wait-port Socket error: Error: getaddrinfo ENOTFOUND localhost +21ms
wait-port Socket cannot be opened: ENOTFOUND +0ms
wait-port Unhandled error occured trying to connect: ConnectionError: The address 'localhost' cannot be found +0ms
I don’t have anything running on 8080 and I’ve got no clue as to why localhost wouldn’t be found.