6

I'm using shadow-cljs in a ClojureScript project. When I do

shadow-cljs watch app

the console log the error shadow-cljs - socket connect failed, server process dead?.

I restarted my computer but the error still

What can I do to fix this problem?

ivangalbans
  • 470
  • 5
  • 14

2 Answers2

7

Does it not continue after showing this error? Make sure you are on a recent version.

This is more like a warning if the server instance wasn't properly shutdown previously. If it doesn't continue normally after printing that message you can wipe the .shadow-cljs directory to fix it although it is supposed to fix itself in this case.

Thomas Heller
  • 3,842
  • 1
  • 9
  • 9
  • Just ran into this. I had killed my process. Wiping `.shadow-cljs/` and rerunning `watch` removed the warning, and sped up the startup time of subsequent calls to `watch`. Thanks! – Teodor Apr 26 '19 at 13:13
2

I have faced a similar problem. The solution below worked for me:

Deleting all files (only files) except classpath.edn. And re-run your app.

Ole Pannier
  • 3,208
  • 9
  • 22
  • 33
Navneet Singh
  • 211
  • 1
  • 9