I am having an issue creating an Salesforce LWC. I am using Visual Studio Code, and right click on the lwc folder and choose, SFDX: Create Lightning Web Component. The component is created, and i have added no custom code, i.e. vanilla creation, but the following error message appears "The 'Static Resource' property doesn't exist on the component.LightningComponentBundle". I have been happily creating previously. I have deleted, SFDX: Delete from Project and Org, and started again, presume this has something to do with the issue
Any help most appreciated
Deleted and tried again, still then same issue using SFDX: Delete from Project and Org
imageSingle.html
<template>
</template>
imageSingle.js
import { LightningElement } from 'lwc';
export default class ImageSingle extends LightningElement {}
imageSingle.js-meta.xml
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="imageSingle">
<apiVersion>46.0</apiVersion>
<isExposed>false</isExposed>
</LightningComponentBundle>
The error is appearing within the imageSingle.js and red line under the import on the first line
Error message - "The 'Static Resource' property doesn't exist on the component.LightningComponentBundle"
Aucun commentaire:
Enregistrer un commentaire