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

localhost:8888 not showing up after update #659

Closed
ganonbit opened this issue Dec 20, 2019 · 18 comments
Closed

localhost:8888 not showing up after update #659

ganonbit opened this issue Dec 20, 2019 · 18 comments

Comments

@ganonbit
Copy link

ganonbit commented Dec 20, 2019

Ever since updating to 2.25.0 I cant get a server to run.

it no longer shows the

┌──────────────────────────────────────────────────────────────┐
│ │
│ [Netlify Dev] Server now ready on http://localhost:8888 │
│ │
└──────────────────────────────────────────────────────────────┘

box and shows endless dots and never serves the files on a new port where the functions are working.

`Netlify Dev ◈
◈ Starting Netlify Dev with create-react-app
◈ Function builder netlify-lambda detected: Running npm script build:lambda
› Warning: ◈ This is a beta feature, please give us feedback on how to improve at https://github.com/netlify/cli/
yarn run v1.21.1
$ react-scripts start
Starting the development server...

Waiting for localhost:3000.
◈ Lambda server is listening on 57397

Connected!
Waiting for localhost:34567...◈ lambda/open-graph-preview.js modified, reloading...
..................................................................................................Compiling...
.Compiled with warnings...................................................................................................`

those warnings being linter warnings that show up when running the normal yarn start as well so nothing blocking it from serving.

was working fine on 2.21.0. but now even when i roll back to 2.21.0 it still no longer works.

@ganonbit
Copy link
Author

ganonbit commented Dec 20, 2019

after looking at the other issue here: #657 (comment)

thankfully rolling back to 2.11.13 got it working again, but for sure a pain that I cant update.

@michalhudecek
Copy link

michalhudecek commented Dec 20, 2019

Same issue here. Rollback to 2.11.13 helped. Thanks!

@jhull
Copy link

jhull commented Dec 21, 2019

Same issue. Rolled back to 2.11.13, endless dots remain...

@abettermap
Copy link

I think this is the same problem as #657.

@jhull
Copy link

jhull commented Dec 23, 2019

Yes, and I was able to get it back working with a combination of rewriting some of Nuxt's default build scripts, and rolling back to 2.12.0 for netlify-cli.

@ganonbit
Copy link
Author

I think this is the same problem as #657.

for sure, just unfortunately outside of being an issue with gatsby it seems. as my project frontend is just a CRA with apollo

@lazno
Copy link

lazno commented Dec 25, 2019

same problem here with CRA. tried out versions 2.11.13, 2.12.0 and current 2.25.0 - to no avail
//edit i stand corrected. after retrying 2.12.0 works for me

@SteveALee
Copy link

Arrg - I also hit this during my first experience of netlify-cli and functions using latest gatsby. I spent all the time I had to explore this try to debug / fix

https://community.netlify.com/t/netlify-dev-port-unknown/6705

Rolling back to netlify-cli@2.11.13 fixed it for me, though functions:invoke seems to be missing I could invoke via HTTP GET and an ReactJS button action.

I nearly gave up on netlify, but guess a bad release over the holiday is something anyone can do

@woubuc
Copy link

woubuc commented Jan 1, 2020

I'm having the same problem with Parcel atm. I tried rolling back to v2.11.13 and v2.12.0 as mentioned in earlier comments, but neither of those worked. It just kept displaying the endless dots.

Update: turns out it has to do with my functions. If I remove the functions line from my netlify.toml it starts up fine, but with the functions it just displays the ever-increasing dots.

@SteveALee
Copy link

@woubuc did you definitely uninstall the more recent version first eg npm r -g netlify-cli. Also check you don't have it also installed for the project? I'm not sure what search order npm performs.

Oh, I'm on Windows but I doubt that makes any difference

@woubuc
Copy link

woubuc commented Jan 1, 2020

Yep, I uninstalled and checked that it couldn't find the binary anymore before reinstalling 2.11.13.

I'm on Windows as well - Windows 10, Node v12.9.1, npm v6.10.2.

@abettermap
Copy link

Maybe try that version of netlify with an older version of Node if you can. This combo is working for me (Mac obviously):

netlify --version

# outputs:
netlify-cli/2.11.13 darwin-x64 node-v10.18.0

@SteveALee
Copy link

@abettermap @woubuc Good call, though I have netlify-cli/2.11.13 win32-x64 node-v12.14.0 and all seems good.

@apuyou
Copy link
Contributor

apuyou commented Jan 8, 2020

For those of you following here, 2.26.0 was just released and has some fixes for this!
@hyliancoder Does this fix your issue?

@ganonbit
Copy link
Author

ganonbit commented Jan 8, 2020

For those of you following here, 2.26.0 was just released and has some fixes for this!
@hyliancoder Does this fix your issue?

It did!

Had to force install as it failed to write as the folder already existed when trying to just npm i -g netlify-cli gave me this

npm ERR! code EEXIST
npm ERR! syscall symlink
npm ERR! path ../lib/node_modules/netlify-cli/bin/run
npm ERR! dest /usr/local/bin/ntl
npm ERR! errno -17
npm ERR! EEXIST: file already exists, symlink '../lib/node_modules/netlify-cli/bin/run' -> '/usr/local/bin/ntl'
npm ERR! File exists: /usr/local/bin/ntl
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.

but doing the --force worked

but yeah, works again on latest version AWW YISS

@ganonbit ganonbit closed this as completed Jan 8, 2020
@abettermap
Copy link

Looks like the fix/es worked, I am seeing localhost:8888 again as well although getting some new warnings:

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGBREAK listeners added to [process]. Use emitter.setMaxListeners() to increase limit

Environment

node -v && npm -v && netlify -v

v12.14.0
6.13.4
netlify-cli/2.28.0 darwin-x64 node-v12.14.0

@apuyou
Copy link
Contributor

apuyou commented Jan 10, 2020

@abettermap I've seen this too but I am not sure it is related to the ports issues. You should probably create a new issue so that it gets tracked if there is not one already.

@abettermap
Copy link

I'm actually still seeing the original issue:

image

Environment

Same environment as my previous comment on January 9, but I changed some things in my project:

package.json scripts

     "build": "gatsby build && (cd lambda && npm install)",
-    "start": "rm -rf .cache/caches/gatsby-plugin-mdx && netlify dev"
+    "start": "rm -rf .cache/caches/gatsby-plugin-mdx && gatsby develop -H 0.0.0.0"
   }

netlify.toml

-[dev]
-  command = "gatsby develop"
+# [dev]

Upgrading to netlify 2.30.0

Would that resolve any of this? Happy to test other scenarios if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants