I am trying to get ready for the upcoming LockerService critical update and I am seeing this error when loading my components/apps:

Uncaught TypeError: Cannot redefine property: text
throws at https://opic--icareuat.lightning.force.com/auraFW/javascript/C9w03EpEHI__XcCDlMV8MQ/aura_prod.js:513:306

It seems to be an issue with the Salesforce js file, anyone know what this cause is and how to get around it?

  • The error source is the root cause of the problem. It is not the source of problem. Please check the javascript controller invoking the Salesforce js code. – Ashwani Jan 4 '17 at 17:46

Probably something like

var text = '1515415' ;

and in the same context (probably same JS method), another definition of variable test

var text = 'dfhdfghf' ;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.