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

Error on second run because process wasn't cleaned up when killed. #227

Closed
wcastand opened this issue Jan 17, 2019 · 3 comments
Closed

Error on second run because process wasn't cleaned up when killed. #227

wcastand opened this issue Jan 17, 2019 · 3 comments

Comments

@wcastand
Copy link

wcastand commented Jan 17, 2019

So the first run is working perfectly but if i kill the process and rerun it, i get this error :

Error: Application at dev-server.ts is already running or didn't cleanup after previous run.To manually clear the last run build, try running "rm -rf /var/folders/k1/f1hwwnjx793cq6jdbs31hv9r0000gn/T/d41d8cd98f00b204e9800998ecf8427e".

This is the command i'm using : yarn ncc run dev-server.ts --watch
I tried without the --watch option but it didn't change the result.

This is the dependencies :

"dependencies": {
  "apollo-server-micro": "^2.2.2",
  "bcryptjs": "^2.4.3",
  "graphql": "^14.0.2",
  "graphql-iso-date": "^3.6.1",
  "jsonwebtoken": "^8.4.0",
  "micro": "^9.3.3",
  "micro-cors": "^0.1.1",
  "mongoose": "^5.3.13",
  "mongoose-unique-validator": "^2.0.2"
},
"devDependencies": {
  "@zeit/ncc": "^0.9.0",
  "dotenv": "^6.2.0",
  "typescript": "^3.2.2"
},

and the tsconfig.json :

{
  "compilerOptions": {
    "target": "es2015",
    "moduleResolution": "node"
  }
}
@benseitz
Copy link

Just ran into the same error. Thank you for the pull request @wcastand!

@wcastand
Copy link
Author

Hi, glad to help but the one you should thank for the Pr is @guybedford :P

@benseitz
Copy link

Oh, right. Since it was fixed hours after opening this ticket I didn't look at the author of the pull request

@guybedford THANK YOU FOR YOUR PULL REQUEST! 🎉 🔥 🏅

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

2 participants