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!
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.