Closed atifwaqar closed 7 years ago
Ensure that moment-element and corresponding moment
library are installed in your sys
directory.
@web-padawan I have the moment-element.
Is there anything else needed?
As you can see here, moment-element
requires moment library as a dependency (in fact, it only provides an HTML import for moment
which should be also installed). You are missing it, but I have no idea why. Are you copying dependencies manually instead of running bower install
?
Yes, I'm copying dependencies manually. The platform that I'm using, does not allow me to run bower install
, if I do, it messes a lot of things. :(
All polymer elements rely on a flat peer-dependency structure, which means that if you look at the folder our element sits in then go up one directory you should have a folder at that level named moment-element which as a moment-element.html file within it, which imports based on ../moment/moment.html (another sibling folder under /sys/ for you).
This isn't any sort of issue we can do anything about our on part unfortunately, my recommendation is to fix your build environment, if the above doesn't solve your problem and you're still having issues, just send me an email.
Hi, I get the 3 exceptions/errors in Chrome Console when I import your HTML like this
and when I remove the import code my page works fine:
Any idea what am I doing wrong here?