You need to sign in to do that
Don't have an account?
Aykut Parlak 5
Lightning Web Components Open Source with Lightning Design System (lwc with slds)
I am trying to local development with Lightning Web Component. The https://lwc.dev works good and I want to also add the Lightning Design System style but I am getting errors.
I have installed the style package @salesforce-ux/design-system and import it via:
async styleLoad() {
await require('@salesforce-ux/design-system');
}
But this does not work. The error message:
./src/modules/my/app/app.js Module not found: Can't resolve '@salesforce-ux/design-system' in '/home/ubuntu/Desktop/CustomApp/src/modules/my/app'
Does someone any positive experience to import the lightning design system in a local lightning web component development.
PS: Everything works on Salesforce server or playground, my problem is: it does not work in local development environment (I am using npm as package manager).
I have installed the style package @salesforce-ux/design-system and import it via:
async styleLoad() {
await require('@salesforce-ux/design-system');
}
But this does not work. The error message:
./src/modules/my/app/app.js Module not found: Can't resolve '@salesforce-ux/design-system' in '/home/ubuntu/Desktop/CustomApp/src/modules/my/app'
Does someone any positive experience to import the lightning design system in a local lightning web component development.
PS: Everything works on Salesforce server or playground, my problem is: it does not work in local development environment (I am using npm as package manager).
Jeroen Burgers 9
Although your post is almost a year old, I stumbled across the same. This post (https://salesforce.stackexchange.com/questions/269615/lightning-web-components-open-source-with-lightning-design-system-lwc-with-slds) explains it very well, and AFAIK status-quo for now. In this (https://medium.com/@ElToroIT/lightning-web-components-is-now-open-source-12296734f384) post you get your current alternatives.