Skip to content
New issue

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

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

Already on GitHub? # to your account

Tests fail under NodeJS v18 #1300

Closed
DougReeder opened this issue Nov 3, 2023 · 0 comments · Fixed by #1313
Closed

Tests fail under NodeJS v18 #1300

DougReeder opened this issue Nov 3, 2023 · 0 comments · Fixed by #1313

Comments

@DougReeder
Copy link
Contributor

Both the test and test:mocha scripts fail under node 18 with the error: ReferenceError: FileReader is not defined

changing
if (typeof Blob === 'undefined') {
to if (typeof Blob === 'undefined' || typeof FileReader === 'undefined') {
at line 248 of util.ts fixes this for test:mocha, but then test throws

UnhandledPromiseRejection: 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(). The promise rejected with the reason "[object Object]".
# for free to join this conversation on GitHub. Already have an account? # to comment
Development

Successfully merging a pull request may close this issue.

2 participants