Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readFile is not a function #4

Open
alex-calderwood opened this issue Jan 21, 2023 · 0 comments
Open

readFile is not a function #4

alex-calderwood opened this issue Jan 21, 2023 · 0 comments

Comments

@alex-calderwood
Copy link

I'm getting this error when I try to run the library.

index.js:62 Uncaught (in promise) TypeError: _fsPromise2.default.readFile is not a function
    at _callee2$ (index.js:62:1)
    at tryCatch (runtime.js:65:1)
    at Generator.invoke [as _invoke] (runtime.js:303:1)
    at prototype.<computed> [as next] (runtime.js:117:1)
    at step (asyncToGenerator.js:17:1)
    at asyncToGenerator.js:35:1
    at new Promise (<anonymous>)
    at new F (_export.js:35:1)
    at asyncToGenerator.js:14:1
    at loadStopWords (index.js:77:1)

Not sure where my issue is, but investigating a bit, I find that the _fsPromise2 object has a bunch of functions that are undefined, including readFile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant