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)
Run DEBUG=vite-plugin-ruby:* bin/vite dev or DEBUG=vite-plugin-ruby:* bin/vite build and provide the output:
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
Screenshots 📷
Provide console or browser screenshots of the problem.
The text was updated successfully, but these errors were encountered:
The PATH environment variable is used by Cygwin applications as a list of directories to search for executable files to run. This environment variable is converted from Windows format (e.g. C:\Windows\system32;C:\Windows) to UNIX format (e.g., /cygdrive/c/Windows/system32:/cygdrive/c/Windows) when a Cygwin process first starts. Set it so that it contains at least the x:\cygwin\bin directory where "x:\cygwin is the "root" of your cygwin installation if you wish to use cygwin tools outside of bash. This is usually done by the batch file you're starting your shell with.
I don't use Windows and remote debugging, esp. with Win., in not very pleasant. Have to setup a VM with Windows to try and reproduce.
bundle update vite_ruby
.Description 📖
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.
Reproduction 🐞
The dev server fails to start with throwing the following error:
Vite Ruby Info
Run
bin/rake vite:info
and provide the output:Logs 📜
If not providing a reproduction:
Output
Run
DEBUG=vite-plugin-ruby:* bin/vite dev
orDEBUG=vite-plugin-ruby:* bin/vite build
and provide the output:Screenshots 📷
Provide console or browser screenshots of the problem.
The text was updated successfully, but these errors were encountered: