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

install in browser not work #130

Closed
Jumbo125 opened this issue Aug 26, 2023 · 3 comments
Closed

install in browser not work #130

Jumbo125 opened this issue Aug 26, 2023 · 3 comments

Comments

@Jumbo125
Copy link

Sorry to bother you again

I can't install it for my brwoser
if i embed

<script src="https://bundle.run/pixelmatch"></script>

it didn't work. the path not exist

So i downlaod the last release and add this path

<script type="text/javascript" src="myserver/js/pixelmatch/bin/pixelmatch"></script>

i only get a error massage:

const PNG = require('pngjs').PNG;
ReferenceError: require is not defined

@Jumbo125
Copy link
Author

works, include index.js datei local and remove the module line

@mourner
Copy link
Member

mourner commented Aug 26, 2023

I should update the link in the readme — the new working one is https://cdn.jsdelivr.net/npm/pixelmatch@5.3.0

@Jumbo125
Copy link
Author

thank you

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

2 participants