futurepress / epub.js

Enhanced eBooks in the browser.
http://futurepress.org
Other
6.41k stars 1.1k forks source link

Error with custom input example #1066

Open gdestree opened 4 years ago

gdestree commented 4 years ago

Having issues with the custom input example on: http://futurepress.github.io/epub.js/examples/input.html

I have downloaded: EPUB (with images) from https://www.gutenberg.org/ebooks/1342. When I select this epub file only the front cover renders in the reader and nothing else works. In the console there is a js error: Uncaught TypeError: undefined is not a function at module.exports (valid-callable.js:4) at Rendition.on (index.js:17) at FileReader.openBook (input.html:51)

Can someone help me figure out why this is not working?

ishank-dev commented 4 years ago

@gdestree Works fine for me I am making my own demo with the help of EPUB.js will update it in the comment by tomorrow. so if you are looking for an input example you can use my code as a template. View the input example here: https://github.com/ishank-dev/Dyslexic-Reader