Closed bvs90 closed 8 years ago
Oh no! Very sorry. I will take a look ASAP
Hi @bvs90, I'm having trouble reproducing this. Can you include repro steps?
@bvs90: Do you have by some accident globally available module
symbol?
@stewartlord @mitar Apologies for the late reply. We are using the library in an Angular project. We are injecting the the library through a factory that just returns $window.identicon and then calling new Identicon() when we need it.
We've pegged our bower.json to an earlier commit so we're able to get around the issue but I'd be curious to know if anyone else was having an issue with using the library in Angular.
Yes, but is there a window.module
symbol defined in your app? From somewhere else? Because if it is, our detection could misdetect it and then not export it to window
, which is what you expect.
Can you just go in your app and run window.module
in the browser console and see if it returns anything?
In my case, including pnglib.js prior to identicon.js fixes the issue.
Closing this issue as it seems to be working.
After the most recent update (for NPM fixes) the above error now occurs. We are not using a module loading system. It seems the PNGLib is not present on window before the main library tries to use it.