lightning-react icon indicating copy to clipboard operation
lightning-react copied to clipboard

Custom Script Eval error in the resource loaded using 'ltng:require' [SecureDOMEvent: [object Event]{ key: {"namespace":"c"} }]

Open pierrerognion opened this issue 6 years ago • 0 comments

Hello,

I am trying to reproduce the lightning-react component on a Salesforce dev org but I get the following error message:

Custom Script Eval error in the resource loaded using 'ltng:require' [SecureDOMEvent: [object Event]{ key: {"namespace":"c"} }]

It seems to be related to steps 3 and 4.

Apparently "The Lightning Design System CSS is now automatically included for Lightning Components running in the Lightning Experience and Salesforce S1 mobile application, as well as when extending the SLDS template when building a standalone Lightning Application (my.app), in LC4VF, or in a component that will be used via Lightning Out. It is no longer necessary to add a static resource for Lightning Components running within these environments." https://www.lightningdesignsystem.com/downloads/

I also tried to remove the following line on step 4 but I still get an error message: styles="/resource/SLDS0122/assets/styles/salesforce-lightning-design-system-ltng.css"

How should I update the code to avoid this Custom Script Eval error? Thanks!

pierrerognion avatar Apr 25 '19 08:04 pierrerognion