You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v7.1.8 cannot be run as a spawned process while ignoring stdin #20884
Basically, doing this causes vite to immediately exit as of v7.1.8:
import{spawn}from'child_process';constprocess=spawn('npx',['vite'],{stdio: ['ignore','inherit','inherit'],});process.on('exit',(code,signal)=>{console.log(`Process exited with code ${code} and signal ${signal}`);});
My reproduction is a new vanilla vite project created today.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Activity
kentcdodds commentedon Oct 2, 2025
Possibly related to #20880
ztolley commentedon Oct 2, 2025
Just to add, potentially linked, 7.1.7 worked fine when used in conjunction with Tilt. When running 7.1.8 it simply appears to fail without error.