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

Cannot use greenlet in node. TypeError: URL.createObjectURL is not a function #53

Open
winston0410 opened this issue Jan 21, 2021 · 1 comment

Comments

@winston0410
Copy link

I am trying to use greenlet in an isomorphic application, where the code will be run in browser and server. I am struggling to use it in node, where I keep getting TypeError: URL.createObjectURL is not a function.

I have tried the following polyfill but no luck.

global.Worker = require('tiny-worker')
global.Blob = require('cross-blob')
global.URL = require('url-polyfill')

What should I do to run greenlet in node?

@gregpalaci
Copy link

was about to ask that too I tried global.Worker = require("webworker");

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

2 participants