developit / developit/greenlet
Cannot use greenlet in node. TypeError: URL.createObjectURL is not a function
- Dominant language
- JavaScript
- Stars
- 4.7k
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
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?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the Node error with greenlet and the listed tiny-worker, cross-blob, and url-polyfill setup. Trace the worker initialization that calls URL.createObjectURL; done means the isomorphic application can run greenlet in Node without this TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100