One of my lightning component is throwing an error like this as soon as I click on a lightning:menuItem.

This page has an error. You might just need to refresh it.\n[NoErrorObjectAvailable] Script error.\nFailing descriptor: {lightning:menuItem}

What kind of error is this, and this error does not show in an actual Dev org, but when i deploy same component in a scratch org, and try to open a menu Button and click in the drop list of that menu button, i get this error throw up.

Does it mean something is not activated in my scratch org? if so, can someone point me out on that please?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.