react-epub-viewer icon indicating copy to clipboard operation
react-epub-viewer copied to clipboard

Get error regeneratorRuntime is not defined

Open ariealdiansyah opened this issue 2 years ago • 6 comments

I try to create epub reader, and trying to make a new copy but still get error regeneratorRuntime is not defined on ReactViewer

image

and here my code

image

ariealdiansyah avatar Jan 17 '23 07:01 ariealdiansyah

Ok. I'll check! 🙆‍♂️

altmshfkgudtjr avatar Jan 18 '23 23:01 altmshfkgudtjr

Ok. I'll check! 🙆‍♂️

im glad to hear that, thank you

ariealdiansyah avatar Jan 19 '23 01:01 ariealdiansyah

Same problem here on NextJS stack: "next": "13.1.6", "react": "18.2.0", "react-dom": "18.2.0", "react-epub-viewer": "^0.2.0"

Nirator78 avatar Feb 05 '23 17:02 Nirator78

Ok. I'll check! 🙆‍♂️

im glad to hear that, thank you

You can add import "regenerator-runtime" On your code and it's resolve for me ! Source: Link

Nirator78 avatar Feb 05 '23 18:02 Nirator78

I was too busy with what I was doing, so I couldn't check it.

Thanks for suggesting a way. We will review it soon! 🙂 @Nirator78

altmshfkgudtjr avatar Feb 21 '23 17:02 altmshfkgudtjr

Got the same issue. Thanks for saving man

sangeethnandakumar avatar Apr 04 '24 18:04 sangeethnandakumar