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

ReferenceError: Blob is not defined #53

Closed
xeroxstar opened this issue Jul 30, 2020 · 4 comments · Fixed by #95
Closed

ReferenceError: Blob is not defined #53

xeroxstar opened this issue Jul 30, 2020 · 4 comments · Fixed by #95
Assignees

Comments

@xeroxstar
Copy link

xeroxstar commented Jul 30, 2020

I am using this module most of my time on the server side, i guess there was an update to this module and i started to getting new errors, here is one of them:

} else if (target instanceof Date || target instanceof Blob || target instanceof Error) {
		                                                       ^

ReferenceError: Blob is not defined

The blob class is not part of the nodejs so the module throwing the error.
To fix it i installed cross-blob package to make it work in nodejs. I hope it will help to someone!

@K0nfy
Copy link

K0nfy commented Nov 13, 2021

It helped indeed. Just wondering if there is only two of us encountered the problem in a year and a half. Should not the issue be opened? For me it seems like the object-observer just won't work out of the box on node without the mentioned package

@gullerya gullerya self-assigned this Nov 13, 2021
@gullerya
Copy link
Owner

@K0nfy && @xeroxstar this issue indeed was not something raised along, I presume due to the fact that object-observer is mostly used in the Web runtimes rather then NodeJS.
I see that Blob as an object was already added to NodeJS around 14/15, but is still requires an import, so still not on par with Web API.
I'm reopening this issue to not fail NodeJS on this. Will hopefully resolve it today. Track this item please.

@gullerya gullerya reopened this Nov 13, 2021
gullerya added a commit that referenced this issue Nov 13, 2021
gullerya added a commit that referenced this issue Nov 13, 2021
* issue #53: fix the Blob dependency;

* prepare release bits
@gullerya
Copy link
Owner

The issue is resolved as part of v4.5.0.

@K0nfy
Copy link

K0nfy commented Nov 13, 2021

Cool

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

Successfully merging a pull request may close this issue.

3 participants