0

I am trying to wrap an lwc inside a aura component to make it available in lightning quick action, but when I tried to push the changes to a scratch org, I am getting the below error. Did anyone encountered and resolved it?

My Aura Component

<aura:component implements="force:lightningQuickActionWithoutHeader">
    <c:sendSms></c:sendSms>
</aura:component>

Error force-app-core\main\default\aura\SendSMSAura\SendSMSAura.cmp Compilation Failure

/{namespace}/sendSms/sendSMS.js:0,0 : LWC1010: Failed to resolve entry for module "sendSMS". ERROR running force:source:push: Push failed.

I refer some of the questions and change like below, but still getting the issue,

<c:send-Sms></c:send-Sms> <c:send-sms></c:sendsms>

1

When wrapping it inside an AURA it should be <namespace: componentNameWithCamelCase></namespace:componentNameWithCamelCase>. So in your case it should be

`<aura:component implements="force:lightningQuickActionWithoutHeader">
    <c:sendSMS></c:sendSMS>
</aura:component>`

Also LWC directly as quick action is now in pilot & might be available soon.

1
  • Actually the issue is in the name <c:sendSMS> is working correctly. In the suggestions the lwc populate as <c:sendSms> in the visual studio code causing the error. Strict case sensitive in LWC. Thanks Sachin. – Hariprasath Jan 7 at 5:58

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.