-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
It may be a problem with the execution environment, but when I run vite with this plugin on Windows Server 2022, it fails because the execFile
argument does not seem to pass to id
correctly.
deno-vite-plugin/src/resolver.ts
Lines 88 to 98 in 3feec86
const output = await new Promise<string | null>((resolve, reject) => { | |
execFile(DENO_BINARY, ["info", "--json", id], { cwd }, (error, stdout) => { | |
if (error) { | |
if (String(error).includes("Integrity check failed")) { | |
reject(error); | |
} else { | |
resolve(null); | |
} | |
} else resolve(stdout); | |
}); | |
}); |
result:
{
version: 1,
denoVersion: "2.3.6",
denoDir: "C:\\Users\\gitlab-runner\\AppData\\Local\\deno",
modulesCache: "C:\\Users\\gitlab-runner\\AppData\\Local\\deno\\remote",
npmCache: "C:\\Users\\gitlab-runner\\AppData\\Local\\deno\\npm",
typescriptCache: "C:\\Users\\gitlab-runner\\AppData\\Local\\deno\\gen",
registryCache: "C:\\Users\\gitlab-runner\\AppData\\Local\\deno\\registries",
originStorage: "C:\\Users\\gitlab-runner\\AppData\\Local\\deno\\location_data",
webCacheStorage: "C:\\Users\\GITLAB~1\\AppData\\Local\\Temp\\deno_cache"
}
I have written a patch to replace exec
, but it hangs in that case.
reserved-word
Metadata
Metadata
Assignees
Labels
No labels