Skip to content

Unexpected token 'export' / Tify is not defined #260

@coret

Description

@coret

When I change the version from 0.33.0 to 0.34.0 or latest 0.34.4 I get the following errors (tested in Chrome):

Uncaught SyntaxError: Unexpected token 'export'
Uncaught ReferenceError: Tify is not defined

(this also occurs when I download the old or latest release and use a local version)

Test file:

<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/tify@0.33.0/dist/tify.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tify@0.33.0/dist/tify.css">
</head>
<body>
<div id="tify" style="height: 100vh; width: 100vw"></div>
<script>
const tify = new Tify({
	container: '#tify',
	manifestUrl: 'https://manifests.sub.uni-goettingen.de/iiif/presentation/PPN623133725/manifest'
});
</script>
</body>
</html>

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