Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

throw new Error(Failed to kill process ${pid}: ${error}) after code change #246

Open
@tombohub

Description

@tombohub

Have you experienced this bug with the latest version of the template?

Yes

Steps to Reproduce

follow tutorial: https://remix.run/docs/en/main/tutorials/blog

  1. npx create-remix@latest --template remix-run/indie-stack blog-tutorial
  2. ? Do you want me to run npm install? Yes
  3. npm run dev
  4. copy paste code inside _index.tsx:
<div className="mx-auto mt-16 max-w-7xl text-center">
  <Link
    to="/posts"
    className="text-xl text-blue-600 underline"
  >
    Blog Posts
  </Link>
</div>

hot reload results in error:

 Mock server running
Remix App Server started at http://localhost:3000 (http://192.168.2.39:3000)

GET /?vscodeBrowserReqId=1689520104299 200 - - 120.051 ms
 info  rebuilding... (~ app\routes\_index.tsx)
 info  rebuilt (463ms)

D:\PROJEKTI\prototypes\remix-blog-tut\node_modules\@remix-run\dev\dist\devServer_unstable\proc.js:29
    throw new Error(`Failed to kill process ${pid}: ${error}`);
          ^

Error: Failed to kill process 28280: Error: Command failed with exit code 1: taskkill /F /PID 28280
ERROR: The process with PID 28280 could not be terminated.
Reason: The operation attempted is not supported.
    at kill (D:\PROJEKTI\prototypes\remix-blog-tut\node_modules\@remix-run\dev\dist\devServer_unstable\proc.js:29:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Promise.all (index 2)
    at async Object.killtree (D:\PROJEKTI\prototypes\remix-blog-tut\node_modules\@remix-run\dev\dist\devServer_unstable\proc.js:43:3)
    at async onBuildFinish (D:\PROJEKTI\prototypes\remix-blog-tut\node_modules\@remix-run\dev\dist\devServer_unstable\index.js:236:13)        

Node.js v18.15.0

Expected Behavior

to normal hot reload and show changes on website

Actual Behavior

server breaks with error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions