Skip to content

Unexpected token 'P', "PK #897

@marco-silvestri

Description

@marco-silvestri

Hi,
when trying to implement the basic example:
<script> D2Reader.load({ url: new URL('http://localhost/mary-parker-follett_the-new-state.epub'), }).then(instance => { console.log("D2Reader loaded ", instance); }).catch(error => { console.error("error.message ", error.message); }); </script>

I get
(index):38 error.message Unexpected token 'P', "PK���

I've tried with different books but nothing has changed. in my package json I have _"@d-i-t-a/reader": "^2.4.10",
what could cause the issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions