Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object prototype may only be an Object or null: undefined #96

Open
cosmin-novac opened this issue Jun 1, 2021 · 0 comments
Open

Object prototype may only be an Object or null: undefined #96

cosmin-novac opened this issue Jun 1, 2021 · 0 comments

Comments

@cosmin-novac
Copy link

cosmin-novac commented Jun 1, 2021

The moment I require the package with
const Epub = require("epub-gen");
I receive the following error message:

Uncaught (in promise) TypeError: Object prototype may only be an Object or null: undefined
    at Function.setPrototypeOf (<anonymous>)
    at modules.js?hash=4d9289ca0a9039fc8136b88cb85d377f39268852:111328
    at patch (modules.js?hash=4d9289ca0a9039fc8136b88cb85d377f39268852:111330)
    at patch (modules.js?hash=4d9289ca0a9039fc8136b88cb85d377f39268852:110909)
    at module (modules.js?hash=4d9289ca0a9039fc8136b88cb85d377f39268852:110901)
    at fileEvaluate (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:346)
    at Module.require (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:248)
    at require (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:268)
    at module (modules.js?hash=4d9289ca0a9039fc8136b88cb85d377f39268852:108613)
    at fileEvaluate (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:346)

If I then try to call new Epub(...), I receive:

Uncaught (in promise) TypeError: Epub is not a constructor

Daylon pushed a commit to Daylon/epub-gen that referenced this issue Sep 29, 2024
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant