question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

UnhandledPromiseRejectionWarning: entry.isFile is not a function

See original GitHub issue

Environment

  • 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:closed
  • Created 5 years ago
  • Reactions:13
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
mrmlnccommented, Jan 7, 2019

Sorry, this applies to the latest release 😭

I revert latest tag for this package to the 2.2.4 version and work on fix for 2.2.5 right now.

npm i fast-glob currently work correctly.

7reactions
vitkarpovcommented, Jan 7, 2019

Fast-glob is officially the new left-pad now 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found