For my client, I am using Chart.Js and d3. After I have moved my code to new org which has locker service enabled. None of my components work. All the object defined in the JS are throwing undefined error.
What can I do ?
https://developer.salesforce.com/blogs/developer-relations/2016/04/introducing-lockerservice-lightning-components.html The locker service doc says the below in faq :
Can I use 3rd party libraries (React, Angular, etc) if running in Locker? Yes, provided they are served from Static Resources and approved by security.
What does this mean "approved by security" ? Can't we use any other external Js library ?
Also while running the CLI tool, it seems it doesn't consider the scripts in staticresource file. then obviously it will have errors. Right ?