You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://www.gstatic.com/firebasejs/9.0.2/firebase-app.js' failed to load.
I'm seeing this service worker error after the ECFA v2 update.
Steps to reproduce:
ember new my-app
cd my-app
ember install ember-simple-auth firebase ember-cloud-firestore-adapter ember-service-worker
ember generate adapter application
ember generate serializer application
// add config
ember s
I believe this may have to do with ember-service-worker wrapping the contents of sw.js in a self invoking function, in which case this issue is unrelated to this addon.
DEBUG: -------------------------------
DEBUG: Ember : 3.28.1
DEBUG: Ember Data : 3.28.3
DEBUG: -------------------------------
The text was updated successfully, but these errors were encountered:
I tried swapping the importScript calls for ESM imports, but I don't understand how ember-service-worker is going to be able to resolve anything unless we 1) bundle firebase-app and firebase-auth separately in the dist and import them into the SW, or 2 ) use fully qualified URLs.
What we want to happen to quickly make this work is to importScript the firebase-app-compat.js and firebase-auth-compat.js. I will quickly make that change and release a fix to get it going but as with the other goals, long term is to slowly move away from compat SDK.
I'm seeing this service worker error after the ECFA v2 update.
Steps to reproduce:
I believe this may have to do with
ember-service-worker
wrapping the contents ofsw.js
in a self invoking function, in which case this issue is unrelated to this addon.The text was updated successfully, but these errors were encountered: