3

I have created one lightning component, after edit component.js, saving component getting "Unknown BundleType: Library".

enter image description here

"Component.js Code"

({ 
    // this function automatic call by aura:waiting event 
    showSpinner: function(component, event, helper) {
        // make Spinner attribute true for display loading spinner 
        component.set("v.Spinner", true); 
    },    
    // this function automatic call by aura:doneWaiting event 
    hideSpinner : function(component,event,helper){
        // make Spinner attribute to false for hide loading spinner 
        component.set("v.Spinner", false);
    }
})
3
  • 1
    Can you please add the relevant component code snippet here? Commented Jan 22, 2020 at 12:06
  • ({ // this function automatic call by aura:waiting event showSpinner: function(component, event, helper) { // make Spinner attribute true for display loading spinner component.set("v.Spinner", true); }, // this function automatic call by aura:doneWaiting event hideSpinner : function(component,event,helper){ // make Spinner attribute to false for hide loading spinner component.set("v.Spinner", false); } }) Commented Jan 22, 2020 at 12:23
  • I guess the error is in the .cmp file not the controller. Commented Jan 22, 2020 at 15:09

1 Answer 1

1

I've got the same error, when trying to update an existing Lightning component. My Lightning component version is 34.

I had to comment all child components that I am referring as well as "ui:outputDate" tags included in the component in order to update the component. [ "ui:outputDate" Deprecated as of API version 47.0. Use lightning:formattedDateTime instead. ]

Please let me know if you find the root cause / fix for this issue.

Thanks. Inshar

1
  • Hi Inshar, My Impediments was while access lightning component using community. Now Impediments has been fixed. In Community -> Setting->Security->Content Security Policy (CSP)-> select (Allow Inline Scripts). Thanks, Bvenkat Jeewesh Commented Jan 27, 2020 at 7:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .