Closed g41n closed 8 years ago
Had the same error. Deleting checks and only loading the factory in photoswipe.js and photoswipe-ui-default.js worked for me:
(function
(root, factory) {
root.PhotoSwipe = factory();
})(this, function () {`
instead of
`(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} else {
root.PhotoSwipe = factory();
}
})(this, function () {`
Hi, I have installed angular-photoswipe via npm but when I try to use it I have this error:
I use angular on meteor framework.
I have the same error if I try to include it directly without using npm.
Any hint would be appreciated, let me know if you need further details.
Best regards.