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
we are experiencing an issue with ts-patch in our project. Sometimes the build pipelines on GitHub fail during the build step when ts-patch tries to delete some lock files that seem to be missing. Everything works fine locally, and it usually works fine on GitHub, too.
We haven't built anything fancy, it's just yarn build, wich runs tspc --project tsconfig.build.json, and the config file has basic options like outDir and baseUrl and enables typescript-plugin-styled-components.
So, I'm a bit lost trying to figure out what's going on here, and I'd really appreciate someone pointing me in right direction.
Is there maybe a way to make ts-patch ignore missing lock files when it just wants to delete them anyway?
Thank you
This is the error message we are getting:
node:internal/fs/utils:356
throw err;
^
Error: ENOENT: no such file or directory, unlink '/home/runner/work/foo/foo/node_modules/.cache/ts-patch/locks/75af25658295a89bdbf9a1f2538d1d52.lock'
at Object.unlinkSync (node:fs:1881:3)
at withFileLock (/home/runner/work/foo/foo/node_modules/ts-patch/utils/file-utils.js:73:26)
at readFile (/home/runner/work/foo/foo/node_modules/ts-patch/module/module-file.js:21:37)
at getModuleFile (/home/runner/work/foo/foo/node_modules/ts-patch/module/module-file.js:79:36)
at getTsModule (/home/runner/work/foo/foo/node_modules/ts-patch/module/ts-module.js:41:54)
at getLiveModule (/home/runner/work/foo/foo/node_modules/ts-patch/module/get-live-module.js:19:50)
at Object.<anonymous> (/home/runner/work/foo/foo/node_modules/ts-patch/compiler/tsc.js:11:26)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32) {
errno: -2,
syscall: 'unlink',
code: 'ENOENT',
path: '/home/runner/work/foo/foo/node_modules/.cache/ts-patch/locks/75af25658295a89bdbf9a1f2538d1d52.lock'
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
we are experiencing an issue with
ts-patch
in our project. Sometimes the build pipelines on GitHub fail during the build step whents-patch
tries to delete some lock files that seem to be missing. Everything works fine locally, and it usually works fine on GitHub, too.We haven't built anything fancy, it's just
yarn build
, wich runstspc --project tsconfig.build.json
, and the config file has basic options likeoutDir
andbaseUrl
and enablestypescript-plugin-styled-components
.So, I'm a bit lost trying to figure out what's going on here, and I'd really appreciate someone pointing me in right direction.
Is there maybe a way to make
ts-patch
ignore missing lock files when it just wants to delete them anyway?Thank you
This is the error message we are getting:
Beta Was this translation helpful? Give feedback.
All reactions