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
I am trying to run the Vite dev server on a Windows system with Cygwin. The issue described in npm/cmd-shim#45 is not the cause since I don't have any special characters in the path.
The dev server fails to start with throwing the following error:
error when starting dev server:
Error: ENOENT: no such file or directory, open '\cygdrive\c\Users\Frank\Document
s\Work\dthub\config\vite.json'
at Object.openSync (node:fs:600:3)
at readFileSync (node:fs:468:35)
at loadJsonConfig (C:\Users\Frank\Documents\Work\dthub\node_modules\vite-plu
gin-ruby\dist\index.cjs:79:48)
at loadConfiguration (C:\Users\Frank\Documents\Work\dthub\node_modules\vite-
plugin-ruby\dist\index.cjs:133:26)
at config (C:\Users\Frank\Documents\Work\dthub\node_modules\vite-plugin-ruby
\dist\index.cjs:234:19)
at runConfigHook (file:///C:/Users/Frank/Documents/Work/dthub/node_modules/v
ite/dist/node/chunks/dep-51c4f80a.js:62865:31)
at resolveConfig (file:///C:/Users/Frank/Documents/Work/dthub/node_modules/v
ite/dist/node/chunks/dep-51c4f80a.js:62374:20)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5
)
at async createServer (file:///C:/Users/Frank/Documents/Work/dthub/node_modu
les/vite/dist/node/chunks/dep-51c4f80a.js:61636:20)
at async CAC.<anonymous> (file:///C:/Users/Frank/Documents/Work/dthub/node_m
odules/vite/dist/node/cli.js:707:24)
$> vite build --debug
Building with Vite :zap:️
2022-11-29T18:24:50.683Z vite:config bundled config file loaded in 214.08ms
error during build:
Error: ENOENT: no such file or directory, open '\cygdrive\c\Users\Frank\Documents\Work\dthub\config\vite.json'
at Object.openSync (node:fs:600:3)
at readFileSync (node:fs:468:35)
at loadJsonConfig (C:\Users\Frank\Documents\Work\dthub\node_modules\vite-plugin-ruby\dist\index.cjs:79:48)
at loadConfiguration (C:\Users\Frank\Documents\Work\dthub\node_modules\vite-plugin-ruby\dist\index.cjs:133:26)
at config (C:\Users\Frank\Documents\Work\dthub\node_modules\vite-plugin-ruby\dist\index.cjs:234:19)
at runConfigHook (file:///C:/Users/Frank/Documents/Work/dthub/node_modules/vite/dist/node/chunks/dep-51c4f80a.js:62865:31)
at resolveConfig (file:///C:/Users/Frank/Documents/Work/dthub/node_modules/vite/dist/node/chunks/dep-51c4f80a.js:62374:20)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async doBuild (file:///C:/Users/Frank/Documents/Work/dthub/node_modules/vite/dist/node/chunks/dep-51c4f80a.js:45244:20)
at async build (file:///C:/Users/Frank/Documents/Work/dthub/node_modules/vite/dist/node/chunks/dep-51c4f80a.js:45233:16)
pid 1152 exit 1
Build with Vite failed! x
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.
Describe the bug
I am trying to run the Vite dev server on a Windows system with Cygwin. The issue described in npm/cmd-shim#45 is not the cause since I don't have any special characters in the path.
The dev server fails to start with throwing the following error:
Reproduction
https://stackblitz.com/edit/vitejs-vite-7xkhd7?file=.vscode%2Fsettings.json&terminal=dev
Steps to reproduce
I am sorry but not sure how to do that for Windows specific setup in stackblitz.
System Info
Used Package Manager
yarn
Logs
Click to expand!
Validations
The text was updated successfully, but these errors were encountered: