remix-run / remix

Build Better Websites. Create modern, resilient user experiences with web fundamentals.
https://remix.run
MIT License
29.81k stars 2.51k forks source link

remix vite:dev via npm run in workspace causes error when cancelled #8866

Open robertjpayne opened 8 months ago

robertjpayne commented 8 months ago

Reproduction

https://stackblitz.com/edit/remix-in-workspace-bug?file=package.json

1. cd packages/my-remix-app
2. npm run dev
3. ctrl+c

If you change the run script to be vite dev instead of remix vite:dev it runs and cleanly exits.

System Info

stackblitz:

  System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.18.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.14.0 - /usr/local/bin/pnpm

local:

  System:
    OS: macOS 14.2.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 358.14 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.9.0 - /opt/homebrew/opt/node@20/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.1.0 - /opt/homebrew/opt/node@20/bin/npm
    pnpm: 8.7.3 - /opt/homebrew/bin/pnpm
    bun: 1.0.26 - /opt/homebrew/bin/bun
  Browsers:
    Brave Browser: 121.1.62.162
    Chrome: 121.0.6167.184
    Safari: 17.2.1
    Safari Technology Preview: 17.4

Used Package Manager

npm

Expected Behavior

ctrl+c or SIGINT should cause a clean exit from the vite:dev

Actual Behavior

Screenshot 2024-02-23 at 11 15 40 PM
ClementeAranguiz commented 4 months ago

try npx vite build before npm run dev