Skip to content

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

@cosmin-novac

Description

@cosmin-novac

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions