This app demoes an issue with the WebComponents polyfill introduced in the version 1.0.8. The issue causes the app to fail in IE11. Most likely, the root cause is closure-compiler/#2640, but for some reason the issue did not surface with the polyfill versions 1.0.7 and before.
First, make sure you have Node and Yarn installed. Then clone the repo and run yarn install
to get all dependencies loaded.
Build the application with yarn build
and then start with yarn start
. The app will start at http://localhost:8081.
The online demo is deployed to this repo's GitHub pages: https://vlukashov.github.io/polymer-local-storage/.
When viewing the app in Internet Explorer 11, it fails to load at Polymer.AppStorageBehavior._enqueueTransaction
:
return this.__transactionQueueAdvances = this.__transactionQueueAdvances.then(transaction).catch(function (error) {
this._error('Error performing queued transaction.', error);
}.bind(this));
The error in console says: Object doesn't support property or method 'catch'
.
Pin the version of the WebComponents polyfill to 1.0.7 or below.