sindresorhus / trash

Move files and directories to the trash
MIT License
2.58k stars 79 forks source link

Webpack is not supported #122

Closed johaven closed 1 year ago

johaven commented 1 year ago

Error when this lib is used with webpack:

Error: spawn /App/dist/main/3bd4d476bb1e0e985412 EACCES
    at ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -13,
  code: 'EACCES',
  syscall: 'spawn /App/dist/main/3bd4d476bb1e0e985412',
  path: '/App/dist/main/3bd4d476bb1e0e985412',
  spawnargs: [ '/Users/johaven/Downloads/home/syncs/test/toto.txt' ],
  cmd: '/App/dist/main/3bd4d476bb1e0e985412 /Users/johaven/Downloads/home/syncs/test/toto.txt',
  stdout: '',
  stderr: ''
}
toto.txt: Error: spawn /App/dist/main/3bd4d476bb1e0e985412 EACCES
sindresorhus commented 1 year ago

This is not the place to ask Webpack support questions. Try: https://github.com/webpack/webpack/issues