I am getting error No base file for markup://c:DesignLwcDemo while deploying this to org

<lightning-card title="Design Attribute" icon-name="custom:custom5">
<?xml version="1.0" encoding="UTF-8"?>
 <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<target> Lightning__AppPage</target>
   <targetConfig targets="lightning__AppPage,Lightning__HomePage">
   <property name="greeting" type="String"></property>
   <targetConfig targets="lightning__RecordPage">
    <property name="heading" type="String"> </property>
import { LightningElement,api } from 'lwc';

 export default class DesignLwcDemo extends LightningElement {
 @api greeting;
 @api heading;

  • Not sure but have faced it. Can you please try deploying the component as a whole. If you're in vs code, do ctrl + shift + e go the parent folder DesignLwcDemo right click & Deploy Source to org & it should work. Commented Apr 21, 2021 at 9:53
  • it works thank you @SachinHooda Commented Apr 21, 2021 at 10:00


You must log in to answer this question.