UnhandledPromiseRejectionWarning: entry.isFile is not a function
See original GitHub issueEnvironment
- OS Version: MacOS Mojave 10.14.2
- Node.js Version: 10.14.1
Error
(node:61869) UnhandledPromiseRejectionWarning: TypeError: entry.isFile is not a function
at EntryFilter.onlyFileFilter (/Users/username/projects/projectname/node_modules/fast-glob/out/providers/filters/entry.js:56:49)
at EntryFilter.filter (/Users/username/projects/projectname/node_modules/fast-glob/out/providers/filters/entry.js:32:18)
at /Users/username/projects/projectname/node_modules/fast-glob/out/providers/filters/entry.js:18:48
at /Users/username/projects/projectname/node_modules/fast-glob/out/adapters/fs-stream.js:33:39
(node:61869) 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:61869) [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.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:13
- Comments:13 (4 by maintainers)
Top Results From Across the Web
Webpack nodejs fs.readFile is not a function - Stack Overflow
You trying to run this code from browser? In browser, obviously, there is not any access to file system. – Bob Sponge. May...
Read more >Node.js fs.Dirent.isFile() Method - GeeksforGeeks
Dirent within File System module which is used to check if the particular dirent describes a File or not. Syntax: const dirent.isFile().
Read more >How to solve the "is not a function" error in JavaScript
js we use require() to load external modules and files. This can cause, in some cases, an error like this: TypeError: require(...) is...
Read more >Node.js v19.3.0 Documentation
Functions to convert from C types to Node-API ... _unrefActive(); DEP0128: modules with an invalid main entry and an index.js file ... isFile();...
Read more >Build a Desktop Application with Angular and Electron
Since the TypeScript compiler is not aware of this, window has to be cast to any before accessing the require function.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry, this applies to the latest release 😭
I revert
latest
tag for this package to the2.2.4
version and work on fix for2.2.5
right now.npm i fast-glob
currently work correctly.Fast-glob is officially the new left-pad now 😉