"ENOENT: no such file or directory, stat" when patching module with file that symlinks within package
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 325
- PR merge metrics
- No merged PRs in 30d
Description
```
patch-package 6.5.0
• Creating temporary folder
• Installing @sentry/react-native@4.9.0 with yarn
• Diffing your files with clean files
Error: ENOENT: no such file or directory, stat '/Users/me/Sites/project/node_modules/@sentry/react-native/node_modules/@sentry/cli/node_modules/.bin/mkdirp'
at Object.statSync (node:fs:1583:3)
at Object.statSync (/Users/me/Sites/project/node_modules/graceful-fs/polyfills.js:319:16)
at checkStats (/Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:171:22)
at checkPaths (/Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:183:31)
at copyDirItem (/Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:117:20)
at /Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:111:39
at Array.forEach ()
at copyDir (/Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:111:23)
at mkDirAndCopy (/Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:106:3)
at onDir (/Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:97:37) {
errno: -2,
syscall: 'stat',
code: 'ENOENT',
path: '/Users/me/Sites/project/node_modules/@sentry/react-native/node_modules/@sentry/cli/node_modules/.bin/mkdirp'
}
/Users/me/Sites/project/node_modules/patch-package/dist/makePatch.js:218
throw e;
^
Error: ENOENT: no such file or directory, stat '/Users/me/Sites/project/node_modules/@sentry/react-native/node_modules/@sentry/cli/node_modules/.bin/mkdirp'
at Object.statSync (node:fs:1583:3)
at Object.statSync (/Users/me/Sites/project/node_modules/graceful-fs/polyfills.js:319:16)
at checkStats (/Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:171:22)
at checkPaths (/Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:183:31)
at copyDirItem (/Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:117:20)
at /Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:111:39
at Array.forEach ()
at copyDir (/Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:111:23)
at mkDirAndCopy (/Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:106:3)
at onDir (/Users/me/Sites/project/node_modules/patch-package/node_modules/fs-extra/lib/copy-sync/copy-sync.js:97:37) {
errno: -2,
syscall: 'stat',
code: 'ENOENT',
path: '/Users/me/Sites/project/node_modules/@sentry/react-native/node_modules/@sentry/cli/node_modules/.bin/mkdirp'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```
The file that can't be found is a symlink to `../../../../mkdirp/bin/cmd.js`.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.