vincentmorneau / apex-pwa

A complete guide for turning an APEX application into a Progressive Web App
MIT License
82 stars 26 forks source link

importing localForage causing TypeError: RangeError: Maximum call stack size exceeded. #17

Open shaunwurdeman opened 4 years ago

shaunwurdeman commented 4 years ago

Importing the localForage script in the sw.js file causes a "TypeError: RangeError: Maximum call stack size exceeded." error to be thrown in Safari on iPadOS 13 and in chrome on MacOS 10.14.5. In safari on MacOS the error is not thrown and the service worker installs properly.

If the import line is removed from sw.js it installs in chrome and on the iPad, but then loses the functionality provided by localForage.

I have also tried using the latest distribution version of localForage (1.7.3 vs the 1.7.1 currently used here) with the same results.