-
Notifications
You must be signed in to change notification settings - Fork 784
Description
Steps to reproduce
try to start a tsgo build via pnpx.
pnpx --package=@typescript/native-preview@latest tsgo --project "D:\git\collaboration\apis.core2\src\Siemens.Collaboration.Js\tsconfig.json" --noEmit --pretty false
I get the following error, which indicates that a file isn't found. If I do the same with tsc and the latest typescript package it works.
Behavior with typescript@5.9
it works.
Behavior with tsgo
======= Build WebProject siemens.collaboration.js ========
1> WebBuildCommand: pnpx --package=@typescript/native-preview@latest tsgo --project "D:\git\collaboration\apis.core2\src\Siemens.Collaboration.Js\tsconfig.json" --noEmit --pretty false
1> Progress: resolved 1, reused 0, downloaded 0, added 0
1> Packages: +2
1> ++
1> Progress: resolved 8, reused 0, downloaded 1, added 1
1> Progress: resolved 8, reused 0, downloaded 2, added 2, done
1> node:internal/child_process:1120
1> result.error = new ErrnoException(result.error, 'spawnSync ' + options.file);
1> ^
1>
1> <ref *1> Error: spawnSync C:\Users\adfrth5\AppData\Local\pnpm-cache\dlx\257d8c301d9980ff4d4d255ce715aca448f1288d9c35e8e42ee0b22e11bdb394\19b8de9f98d-4fac\node_modules.pnpm@typescript+native-preview-win32-x64@7.0.0-dev.20260105.1\node_modules@typescript\native-preview-win32-x64\lib\tsgo.exe ENOENT
1> at Object.spawnSync (node:internal/child_process:1120:20)
1> at spawnSync (node:child_process:901:24)
1> at execFileSync (node:child_process:944:15)
1> at file:///C:/Users/adfrth5/AppData/Local/pnpm-cache/dlx/257d8c301d9980ff4d4d255ce715aca448f1288d9c35e8e42ee0b22e11bdb394/19b8de9f98d-4fac/node_modules/.pnpm/@typescript+native-preview@7.0.0-dev.20260105.1/node_modules/@typescript/native-preview/bin/tsgo.js:9:5
1> at ModuleJob.run (node:internal/modules/esm/module_job:345:25)
1> at async onImport.tracePromise.proto (node:internal/modules/esm/loader:651:26)
1> at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5) {
1> errno: -4058,
1> code: 'ENOENT',
1> syscall: 'spawnSync C:\Users\adfrth5\AppData\Local\pnpm-cache\dlx\257d8c301d9980ff4d4d255ce715aca448f1288d9c35e8e42ee0b22e11bdb394\19b8de9f98d-4fac\node_modules\.pnpm\@typescript+native-preview-win32-x64@7.0.0-dev.20260105.1\node_modules\@typescript\native-preview-win32-x64\lib\tsgo.exe',
1> path: 'C:\Users\adfrth5\AppData\Local\pnpm-cache\dlx\257d8c301d9980ff4d4d255ce715aca448f1288d9c35e8e42ee0b22e11bdb394\19b8de9f98d-4fac\node_modules\.pnpm\@typescript+native-preview-win32-x64@7.0.0-dev.20260105.1\node_modules\@typescript\native-preview-win32-x64\lib\tsgo.exe',
1> spawnargs: [
1> '--project',
1> 'D:\git\collaboration\apis.core2\src\Siemens.Collaboration.Js\tsconfig.json',
1> '--noEmit',
1> '--pretty',
1> 'false'
1> ],
1> error: [Circular *1],
1> status: null,
1> signal: null,
1> output: null,
1> pid: 0,
1> stdout: undefined,
1> stderr: undefined
1> }