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).