Incompatability with pnpm when generating a diff?
- Dominant language
- TypeScript
- Stars
- 11.2k
- Forks
- 325
- PR merge metrics
- No merged PRs in 30d
Description
I tried using this with `pnpm` https://pnpm.js.org/en/ and it worked only on the first try for `pnpx patch-package lottie-react-web`. Afterward all I got was
```
$ /Users/david.aghassi/web/node_modules/.bin/patch-package lottie-react-web
patch-package 6.2.2
• Creating temporary folder
• Installing lottie-react-web@2.2.2 with yarn
• Diffing your files with clean files
{ Error: ENOENT: no such file or directory, scandir '/var/folders/mj/p6yszgl92kb4q4_0hx90nqw40000gn/T/tmp-57791662T5RZumCYT/node_modules/lottie-react-web'
at Object.readdirSync (fs.js:790:3)
at Object.klawSync [as default] (/Users/david.aghassi/web/node_modules/.pnpm/klaw-sync@6.0.0/node_modules/klaw-sync/klaw-sync.js:13:25)
at Object.removeIgnoredFiles (/Users/david.aghassi/web/node_modules/.pnpm/patch-package@6.2.2/node_modules/patch-package/dist/filterFiles.js:10:24)
at Object.makePatch (/Users/david.aghassi/web/node_modules/.pnpm/patch-package@6.2.2/node_modules/patch-package/dist/makePatch.js:133:23)
at /Users/david.aghassi/web/node_modules/.pnpm/patch-package@6.2.2/node_modules/patch-package/dist/index.js:48:25
at Array.forEach ()
at Object. (/Users/david.aghassi/web/node_modules/.pnpm/patch-package@6.2.2/node_modules/patch-package/dist/index.js:47:22)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path:
'/var/folders/mj/p6yszgl92kb4q4_0hx90nqw40000gn/T/tmp-57791662T5RZumCYT/node_modules/lottie-react-web' }
/Users/david.aghassi//web/node_modules/.pnpm/patch-package@6.2.2/node_modules/patch-package/dist/makePatch.js:183
throw e;
^
Error: ENOENT: no such file or directory, scandir '/var/folders/mj/p6yszgl92kb4q4_0hx90nqw40000gn/T/tmp-57791662T5RZumCYT/node_modules/lottie-react-web'
at Object.readdirSync (fs.js:790:3)
at Object.klawSync [as default] (/Users/david.aghassi/web/node_modules/.pnpm/klaw-sync@6.0.0/node_modules/klaw-sync/klaw-sync.js:13:25)
at Object.removeIgnoredFiles (/Users/david.aghassi/web/node_modules/.pnpm/patch-package@6.2.2/node_modules/patch-package/dist/filterFiles.js:10:24)
at Object.makePatch (/Users/david.aghassi//web/node_modules/.pnpm/patch-package@6.2.2/node_modules/patch-package/dist/makePatch.js:133:23)
at /Users/david.aghassi/web/node_modules/.pnpm/patch-package@6.2.2/node_modules/patch-package/dist/index.js:48:25
at Array.forEach ()
at Object. (/Users/david.aghassi/web/node_modules/.pnpm/patch-package@6.2.2/node_modules/patch-package/dist/index.js:47:22)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```
Is this a known issue? If not, I can try and make a repro repo if necessary
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.