How To Use Javascript Promises with Lightning Components

Javascript Promises has been around for a while but only got the chance to use it on some of the aura component pieces I started working on. In analogy you make a promise and either you fulfil or break your promise. In Javascript Promises context these translate to “resolve” meaning promise is fulfilled or “reject”… Read More How To Use Javascript Promises with Lightning Components

How To Fix [Cannot read property ‘setParams’ of undefined] for Application Event in Aura Components

Component.cmp Controller.js Are you receiving cannot read property ‘setParams’ of undefined after assigning an event? This indicates that $A.get(“e.c:CRMAppEvent”) cannot find the event and any reference to setParams method or any properties of the event would eventually be undefined. To fix this you need to set your application event access to global CRMAppEvent.evt

How to Fix Compilation LWC1010: Failed to resolve entry for module

This “LWC1010:Failed to resolve entry for module” compilation error is caused by an invalid reference to the component filename. By default camel case component folder names are mapped to kebab-case in the markup when calling them from Lightning Web Components. To resolve entry for module errors check the proper naming and hyphen. Eg. myComponent would… Read More How to Fix Compilation LWC1010: Failed to resolve entry for module