destiny: Error: ENOENT: no such file or directory, scandir
Hello,
Recently I tried to use this amazing library and after running npx destiny -w src
I got this problem:
(node:23356) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, scandir
at Object.readdirSync (fs.js:854:3)
at removeEmptyFolders (C:\Users\xxxxx\AppData\Roaming\npm-cache\_npx\23356\node_modules\destiny\lib\destiny.js:170:20)
at formatFileStructure (C:\Users\xxxxx\AppData\Roaming\npm-cache\_npx\23356\node_modules\destiny\lib\destiny.js:351:5)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async run (C:\Users\xxxxx\AppData\Roaming\npm-cache\_npx\23356\node_modules\destiny\lib\destiny.js:965:5)
(node:23356) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside
of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)(node:23356) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I will appreciate any help.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 20 (3 by maintainers)
Commits related to this issue
- fix: #135 — committed to AnatoleLucet/destiny by AnatoleLucet 4 years ago
- fix: #135 — committed to AnatoleLucet/destiny by AnatoleLucet 4 years ago
- fix: #135 — committed to AnatoleLucet/destiny by AnatoleLucet 4 years ago
- fix: #135 — committed to AnatoleLucet/destiny by AnatoleLucet 4 years ago
- Merge pull request #140 from AnatoleLucet/fix/forward-slashes-on-windows fix: #135 — committed to benawad/destiny by AnatoleLucet 4 years ago
- chore(release): 0.7.0 [skip ci] # [0.7.0](https://github.com/benawad/destiny/compare/v0.6.2...v0.7.0) (2020-05-23) ### Bug Fixes * [#128](https://github.com/benawad/destiny/issues/128) ([3c33290](h... — committed to benawad/destiny by semantic-release-bot 4 years ago
Ok so that’s an issue with
path.sep
.I’m going to fix this a bit later in the day. Thank you for taking the time to run the build!
yes
If I push a custom build of Destiny (with logs that will help to debug this issue) on a new branch, would you be able to run it on your project?
yeah it’s empty