This is related to my other thread here.
So once I removed the HTML and JS files leaving just the CSS and XML files my consumerComponent is consuming the CSS from myComponent alright. I can see that it's picking up the css correctly.
However if I try to re-save the consumerComponent
I get an error saying Error:(1, 1) No MODULE named markup://c:myComponent found : [markup://c:myComponent]
Has anybod successfully imported CSS from another LWC component? It appears that I can't make any further changes to my consumerComponent
once I delete the html and js from myComponent
. It just won't let me deploy although as I said the CSS is picking up correctly.
myComponent.js-meta.xml
file, perchance? You do still need that file, despite not having a JS file in your component. – sfdcfox Jul 30 '20 at 22:03