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. – Sachin Hooda Apr 21 at 9:53
  • it works thank you @SachinHooda – Shivani Tanwar Apr 21 at 10:00

Your Answer

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

Browse other questions tagged or ask your own question.