binarykitchen / find-remove

recursively finds files by filter options from a start directory onwards and deletes these. useful if you want to clean up a directory in your node.js app.
https://npmjs.org/package/find-remove
61 stars 19 forks source link

TypeError: findRemoveSync is not a function #26

Closed sadashivm closed 3 years ago

sadashivm commented 3 years ago

Hello, I'm getting the below error and I'm using this npm package with Electron JS and react js application.

image

And here is my code, image

binarykitchen commented 3 years ago

Mate, mixing require and import in the same file is no good idea.

Try importing findRemoveSync instead of requiring.