Polymer: Cannot read property 'instanceCount' of undefined Polymer.Base.createdCallback

Created on 18 Jun 2015  路  7Comments  路  Source: Polymer/polymer

Uncaught TypeError: Cannot read property 'instanceCount' of undefinedPolymer.Base.createdCallback
@ polymer-micro.html:103

Upgraded from .5 to 1.0 and now I get this error.

Most helpful comment

@cchristensen-cxp
Did you only get this error message appearing in firebase hosting?

When I do firebase serve and everything is fine but when I deploy to firebase hosting this is when I get the error.

All 7 comments

how does your created() callback look like ?

Would it be possible to share the source to your element (or a minimal test case) that we can use to dig into this further?

Found the issue while making the test case. I was importing file that didn't exist.

@cchristensen-cxp
Did you only get this error message appearing in firebase hosting?

When I do firebase serve and everything is fine but when I deploy to firebase hosting this is when I get the error.

@JGSolutions have you been able to fix this issue? I keep getting this when I try to deploy it or serve it through firebase.

In the sw-precache-config.js add this line:

navigateFallbackWhitelist: [ /^\/[^_]+\// ]

@JGSolutions when i add this line i get this message in the polymer build process:

info: Preparing build...
info: Building application...
warn: /Users/*/Desktop/**/sw-precache-config.js file was found but could not be loaded
{ loadError: {} }
info: Generating build/unbundled...
info: Generating build/bundled...
info: Build complete!

Was this page helpful?
0 / 5 - 0 ratings