UI-Grid : Error "Multiple definitions of a property not allowed in strict mode [object Object]" [ IE- Only ]

15,792

Solution 1

As the error state, you are using somewhere an object that has more than one property with the same name . Something like :

var obj= {
    property1: 0,
    property2: 1,
    property1: 2
};

Printing the upper object results in :

{ property1: 2, property2: 1 }

Also searching a little bit on stack overflow, you can find a more detailed answer why this error is outputed in Internet Explorer

What's the purpose of allowing duplicate property names?

Solution 2

Its difficult to find multiple definition manually when you have long code written by someone else.

I used http://jshint.com/ and pasted code there, it showed me all duplicate warnings and I fixed those everything worked.

Share:
15,792
Nidhin T T
Author by

Nidhin T T

Software Developer ::: Greatminds-media.com

Updated on June 09, 2022

Comments

  • Nidhin T T
    Nidhin T T about 2 years

    While loading Ui-Grid In IE throwing error messages -

    [true]  [SYSERR] Multiple definitions of a property not allowed in strict mode [object Object]
    

    enter image description here Issue is only in IE, Not throwing any errors in FireFox & Chrome. Tested on IE Version-11.

    Thanks in Advance.