简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM