How to install timmywill panzoom with a script tag

124 Views Asked by At

I am trying to add panzoom to my page via a vanilla script tag. In the documentation it says:

With a script tag:

<script src="/js/panzoom.js"></script>

I can not find a folder called js nor a file called panzoom.js in the package, only src/panzoom.ts. Trying to include this file causes an error:

Refused to execute script from '…/panzoom.ts?ver=5.4.1' because its MIME type ('video/mp2t') is not executable.

How can I get this library to run? Is there no single js file I can add to my page?

0

There are 0 best solutions below