Skip to main content

Hello Developers,

  I attempted to follow the documentation here => https://developer.salesforce.com/docs/component-library/documentation/en/lwc/create_components_css_share

 

For step 1 it seems impossible to create a component with JUST a css file. I figured it then needed a meta file but that didn't work either. I finally got it to deploy when I added a basic js file and exported a class. 

 

After I got that working I tried to use the @import which failed with the message 

Unknown ref type slds for ref <mynewcssfile>.css in file <componentIamImportingInto>.css

 

Wondering if anybody had been able to get the above working by following the documentation before. I have many components that will share the same CSS and don't want to be duplicating it everywhere.

6 件のコメント
0/9000