Loading

Lightning Component changes do not appear after a successful deployment

Date de publication: Oct 13, 2022
Description
To improve performance, Lightning components use Memcache for server-side caching. However, this can sometimes lead to caching issues, whereby users continue to observe the old version of a component after a successful deployment.

Example: 
  1. Make a change to a lightning component.
  2. Deploy the change to a sandbox.
  3. Access the lightning component – you may observe that the old component is still in use. 
  4. Message :  aura/<componentNameA> -- Error: This aura component bundle is referenced elsewhere in salesforce.com. Remove the usage and try again. : Aura Component Bundle "c:<componentNameB>" - CONTROLLER - componentNameB.
Résolution

To circumvent this issue, clear the component cache by following the instructions below:
  1. Open any lightning component in the developer console.
  2. Make any change to the component (for example, add a whitespace).
  3. Save the component.
This should clear the component cache, thereby updating the component the next time it is accessed.
Numéro d’article de la base de connaissances

000381669

 
Chargement
Salesforce Help | Article