Polymer Elements in a Meteor App

javascript, meteor, polymer

Solution

I have created a package to add Polymer functionality to Meteor.

Here is the github.

http://github.com/ecwyne/meteor-polymer

Update: It can also be added using `meteor add ecwyne:polymer-elements`

Problem

Has anyone successfully added Polymer elements to a Meteor project? I'm struggling to make it work. I've tried using bower to install the Polymer package under public: ``` ├── public │   ├── bower_components │   │   ├── platform │   │   └── polymer │   ├── elements │   │   └── my-element.html ``` I then included the element like this: ``` <head> <title>test</title> <script src="bower_components/platform/platform.js"></script> <link rel="import" href="elements/my-element.html"> </head> <body> ... <my-element></my-element> ... </body> ``` That's resulting in an endless loop of XHR requests for platform.js and my-element.html. I've also tried the meteor-polymer package, that doesn't include polymer.html and I couldn't get it to recognize the package anyway: ``` => Errors prevented startup: While building the application: error: no such package: 'polymer' ``` I'm hoping someone has been able to get Polymer working with Meteor as I'd really like to use my components in this app.

Original source