4

While testing LWC in VSCode using jest script, unable to render custom LWC component, it throws an error- Unknown public property "smalldevicesize" of element . This is likely a typo on the corresponding attribute "smalldevicesize".

Here is the error screenshot

2 Answers2

3

You are using a wrong attribute name smalldevicesize this should be small-device-size

Here is an example:

<lightning-layout-item small-device-size="">

Here is the Lightning Web Component documentation. I hope this should work.

Rahul Kumar
  • 469
  • 5
  • 10
1

change the attribute to because it supports to kebab notation.