developit / developit/greenlet
Cannot use greenlet in node. TypeError: URL.createObjectURL is not a function
- Lenguaje dominante
- JavaScript
- Estrellas
- 4.7k
- Forks
- 97
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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?
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza reproduciendo el error de Node con greenlet y la configuración indicada de tiny-worker, cross-blob y url-polyfill. Rastrea la inicialización del worker que llama a URL.createObjectURL; el trabajo estará terminado cuando la aplicación isomórfica pueda ejecutar greenlet en Node sin este TypeError.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- backend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100