kqito / use-tus

React hooks for resumable file uploads using tus
https://kqito.github.io/use-tus/?path=/story/usetus--basic
MIT License
104 stars 8 forks source link

ReferenceError: regeneratorRuntime is not defined #39

Closed jordiyapz closed 1 year ago

jordiyapz commented 1 year ago

The problem arise in useAutoAbort hook. After being bundled by babel, I suppose, the library throw this error.

Uncaught ReferenceError: regeneratorRuntime is not defined
    abortUploading index.esm.js:199
    useAutoAbort2 index.esm.js:226
    ....
maclementED commented 1 year ago

Did you find a solution for this ? Im having the same issue on NextJS

kqito commented 1 year ago

I'm sorry for the delay.This bug fixed by #40. Thank you for your report! ;)