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

Errors when using library client-side. #32

Closed
whaaaley opened this issue Feb 17, 2018 · 1 comment
Closed

Errors when using library client-side. #32

whaaaley opened this issue Feb 17, 2018 · 1 comment

Comments

@whaaaley
Copy link

whaaaley commented Feb 17, 2018

I'm following the docs exactly yet I get two errors:
Uncaught TypeError: Cannot read property 'Base64' of undefined
Uncaught ReferenceError: ImgixClient is not defined

I'm including the library like this:
<script defer src='https://unpkg.com/imgix-core-js@1.1.1/dist/imgix-core-js.min.js'></script>

@jayeb
Copy link
Contributor

jayeb commented Feb 20, 2018

Yup, this library has two dependencies that you need to include as well. They're listed in package.json:

"js-base64": "^2.1.9",
"md5": "^2.2.1"

If you install the package via Bower or NPM those packages will be installed automatically. I'm not familiar with unpkg, but I assume they should have a mechanism somewhere in their service that will allow you to include dependencies as well.

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