Search code examples
breeze

Error with breeze 1.4.11 and IE8


Trying to download data with breeze 1.4.11 and IE8 throws the following exception:

Unable to either parse or import metadata: getters & setters can not be defined on this javascript engine

The error is caused by line 173 of b00_breeze.modelLibrary.backingStore.js

Created a GitHub repo to reproduce the bug.


Solution

  • The Breeze 'backingStore' model library is explicitly not supported in IE8. This is because the 'backingStore' implementation requires the full javascript 'Object.defineProperty' capability which is not available in IE8 and cannot be provided by any shim.

    That said, the breeze 'knockout' and 'backbone' model library adapters should both work with IE8.

    Also see: http://www.breezejs.com/documentation/prerequisites