Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CssSyntaxError: LWC1009: postcss-plugin-lwc: 2:3: Invalid definition of custom property #4493

Open
erocheleau opened this issue Oct 11, 2022 · 1 comment

Comments

@erocheleau
Copy link

erocheleau commented Oct 11, 2022

Summary

LWC Local Development does not support the use of styling hooks as documented here Lightning Design System Styling Hooks.

A variation of this screen and this error will be displayed instead

image

"CssSyntaxError: LWC1009: postcss-plugin-lwc: 2:3: Invalid definition of custom property "--slds-c-checkbox-color-border"."

Steps To Reproduce:

  1. Attempt to override a LWC styling hooks in your component:
:host {
  --slds-c-checkbox-color-border: var(#747474);
}
  1. Open the component in the LWC Local Dev Server.

Expected result

Expected the component to render correctly with the style override.

Actual result

A variation of this screen and this error will be displayed instead

image

"CssSyntaxError: LWC1009: postcss-plugin-lwc: 2:3: Invalid definition of custom property "--slds-c-checkbox-color-border"."

Additional information

sfdx plugins

>>> @salesforce/lwc-dev-server 2.11.0

This had also been reported a long time ago in a different repository: forcedotcom/lwc-dev-server-feedback#76

SFDX CLI Version:

sfdx version

>>> sfdx-cli/7.171.0 wsl-x64 node-v16.13.2
@AnanyaJha
Copy link
Collaborator

Hi @erocheleau thanks for reporting this! Unfortunately our team will not be able to pick up any changes related to Local Dev Server this year, but we're happy to hear your feedback. If you have any further issues or feedback for the product, feel free to leave a comment - forcedotcom/lwc-dev-server-feedback#143. Thank you for the patience

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants