Skip to main content

One post tagged with "Lightning Components"

Deploying Lightning web and Aura component bundles

View All Tags

Why a Lightning Component Bundle Fails to Deploy — and What It Depends On

· 4 min read
Alina Hubaidullina
Salesforce Consultant

You deploy a Lightning web component that's run fine in your sandbox for weeks, and the target org rejects the bundle. The component itself didn't change. In the target, something it leans on — an Apex method, a field, a child component — isn't there, and the deploy fails on it. That's because a bundle is a thin shell that imports things like Apex controllers, fields, child components, static resources, labels, and message channels, and Salesforce resolves every one of those references against the target at deploy time. The fix is to deploy the bundle together with everything it depends on, which is what mtdt.io's Impact Analysis flags for you before the deploy runs.