function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Loading lightning component with Js from resource giving error.

I am using the js from resource in lightning component and when I initialize cmp there is one error popsup shown as below:
User-added imageand facing errors in console like below:
User-added imagenot able to track this fonts in resource..
Khan AnasKhan Anas (Salesforce Developers) 

Greetings to you!

Its looks like an issue with your library. Please check the resource you are using is compatible with Locker service. When you encounter errors related to the external libraries the first place to look for is checking your library against Locker console. You can try pasting the while source script in the Locker Console and see what kind of error you are getting.

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas