javascriptinternet-explorer-8local-storagepouchdbes5-shim

PouchDB not working in IE8


I am testing PouchDB app in IE8, but I am getting following errors. I have included pouchdb.localstorage.js and es5.shim.js file in index.html.

You can find below the errors:

  1. Expected Identifier, string or number for following line (pouchdb.localstorge.js):

Line no. 11019: , try: [

  1. Expected Identifier for following line (main.js - local js file):

}).catch(function (err) { console.log('Unable to insert into DB. Error: ' + err.name + ' - ' + err.message); });

How can I fix these issues?


Solution

  • This is a bug. Please file an issue on Github and we'll look into it. Seems the issue is that we need to es3ify the source file to escape keywords like "try."