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
Hi! 👋 I made some changes to the @types/react-native package in a project and got the following error after running yarn patch-package @types/react-native:
yarn run v1.3.2
$ /Users/petepetrash/code/substrate/node_modules/.bin/patch-package @types/react-native
☑ Creating temporary folder
☑ Building clean node_modules with yarn
☑ Diffing your files with clean files
{ Error: ENOENT: no such file or directory, scandir '/var/folders/w_/h6ysqgj94551ycy8x6zdqbdr0000gn/T/tmp-11743ZEpu6eZGxqko/node_modules/@types/react-native'
at Object.readdirSync (fs.js:750:3)
at klawSync (/Users/petepetrash/code/substrate/node_modules/klaw-sync/klaw-sync.js:13:25)
at Object.exports.makePatch (/Users/petepetrash/code/substrate/node_modules/patch-package/dist/makePatch.js:77:9)
at /Users/petepetrash/code/substrate/node_modules/patch-package/dist/index.js:24:25
at Array.forEach (<anonymous>)
at Object.<anonymous> (/Users/petepetrash/code/substrate/node_modules/patch-package/dist/index.js:23:22)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path:
'/var/folders/w_/h6ysqgj94551ycy8x6zdqbdr0000gn/T/tmp-11743ZEpu6eZGxqko/node_modules/@types/react-native' }
/Users/petepetrash/code/substrate/node_modules/patch-package/dist/makePatch.js:125
throw e;
^
Error: ENOENT: no such file or directory, scandir '/var/folders/w_/h6ysqgj94551ycy8x6zdqbdr0000gn/T/tmp-11743ZEpu6eZGxqko/node_modules/@types/react-native'
at Object.readdirSync (fs.js:750:3)
at klawSync (/Users/petepetrash/code/substrate/node_modules/klaw-sync/klaw-sync.js:13:25)
at Object.exports.makePatch (/Users/petepetrash/code/substrate/node_modules/patch-package/dist/makePatch.js:77:9)
at /Users/petepetrash/code/substrate/node_modules/patch-package/dist/index.js:24:25
at Array.forEach (<anonymous>)
at Object.<anonymous> (/Users/petepetrash/code/substrate/node_modules/patch-package/dist/index.js:23:22)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
This project uses the Yarn workspaces feature, so this may be related to #42
The text was updated successfully, but these errors were encountered:
Thanks for the report! ❤️ Sorry it took me so long to get around to taking a look.
I completely re-worked the patch creation process for patch-package@6.0.0-12 and can't reproduce this so will close this issue if you don't mind. Please feel free to open a new issue if you're still having trouble!
Hi! 👋 I made some changes to the
@types/react-native
package in a project and got the following error after runningyarn patch-package @types/react-native
:This project uses the Yarn workspaces feature, so this may be related to #42
The text was updated successfully, but these errors were encountered: