developit / developit/greenlet

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

Aperta
#53 1 commento 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
4.7k
Fork
97
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.