1

I am building Lightning component in which I am using ltng tag like this:

<ltng:require scripts="{!$Resource.MyScriptResourceJs}"   />

But in IE 11 it throws following error in browser debugger : Action failed: ltng:require$controller$init ['Proxy' is undefined] Callback failed: aura://ComponentController/ACTION$getComponent

Any suggestions on how to fix it?

  • Dont use internet explorer – glls Jul 6 '17 at 21:54
1

Unfortunately the issue you are facing is caused by IE11.

The root of the problem is that LockerService is now enabled by default since Summer '17 and IE11 is one of the few browsers that do not implement required security standards.

The official recommendation is to use another browser than IE11:

IE11 doesn’t support CSP, so we recommend using other supported browsers for enhanced security.

Source: https://releasenotes.docs.salesforce.com/en-us/summer16/release-notes/rn_lightning_locker.htm

FYI: IE11 has been removed from the list of supported browsers for Lightning Experience: https://help.salesforce.com/articleView?id=getstart_browsers_sfx.htm&language=en_US&type=0

1

This is a bug in ltng:require.

Locker Service is not supported in IE11 and we gracefully degrade it and let the components work in non-lockerized mode. But some recent code changes were causing ltng:require to invoke locker service routines that require Proxy support and would cause the error you reported.

This has been previously reported and a salesforce case has been logged(case no 16639381). We are fixing this in the this week's(7/5/2017 - 208.12) patch release. This will be the bug number tracking the fix W-4084212.

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.