greenlet icon indicating copy to clipboard operation
greenlet copied to clipboard

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

Open winston0410 opened this issue 4 years ago • 1 comments

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?

winston0410 avatar Jan 21 '21 08:01 winston0410

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

jswhisperer avatar Apr 27 '21 23:04 jswhisperer