Issues with Polymer, primarily PolymerExpressions

70 views
Skip to first unread message

Curtis Blackwell

unread,
Apr 17, 2015, 2:35:10 AM4/17/15
to polym...@googlegroups.com
I'm working on a simple Polymer app. I'm using the Polymer Yeoman generator, which set me up with Polymer 0.5.5.


It's working in Chrome (Mac Stable, Version 42.0.2311.90 (64-bit)), but I do get an error in the console:

> Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:9000/elements/polymer/polymer.html

---

As of now, it's only going to run on an in-store iPad 2, but there are issues when running on Safari/Chrome. Unfortunately that's as much as I know right now for iPad 2 issues. I work remotely (on the other side of the world) and that's all my boss was able to relay to me so far.

---

We also discovered some issues in Firefox (Mac 37.0.1), which is my primary immediate concern (I'm hoping solving these issues will solve those with the iPad). Here's what I get in the console:

> ReferenceError: PolymerExpressions is not defined app.js:123:2

The code from `app.js` looks like this (helps with dealing with data from Firebase):

```
(function (document) {
  'use strict';
  ...
  
  
  PolymerExpressions.prototype.keys = function(o) {
    if (typeof o === 'object') {
      return Object.keys(o);
    }
  }
  
  
  ...
})(wrap(document));
```

I'm loading `webcomponents.js` in my `<head>`, and `app.js` is the last thing before `</body>`.

The second error is the same 404 on `polymer.html`. I can't find anything referencing `/elements/polymer/polymer.html` in my code, so I'm guessing `webcomponents.js` might have something to do with that.

---

I talked with @justin on Slack a little bit ([link to the discussion](https://polymer.slack.com/archives/general/p1429251000000765)), and he suggested trying the `polymer-ready` event, which *does* suppress the error, but I still get another error (multiple times) I expected fixing that one to take care of:

> "Cannot find function or filter: keys"

--
Curtis Blackwell
Reply all
Reply to author
Forward
0 new messages