Closed sascha-frinken closed 4 years ago
This error means you are missing the @vaadin/vaadin-lumo-styles
NPM dependency.
You should be able to add it manually via
vaadinClientDependencies {
yarn '@vaadin/vaadin-lumo-styles'
}
Since the Vaadin Business Starter is a commercial Vaadin product and not open source I can't really help you further. You might want to turn to the Vaadin guys for help.
I think you have a typo, the .js
extension is missing.
So it should be @JsModule("@vaadin/vaadin-lumo-styles/badge.js")
The orginal vaadin source has no .js
extension.
I already tried with @JsModule("@vaadin/vaadin-lumo-styles/badge.js")
that makes the warning disappear but the style is not applied…
Looks like some magic.
Looks like the badge styles are problematic. Found at least these tickets about them:
Tested this with the latest master branch and was successful in using the badge style by using the following approach:
@CssImport(value = "./theme.css", include = "lumo-badge")
@JsModule("@vaadin/vaadin-lumo-styles/badge.js")
Html html = new Html("<span>Badge</span>");
html.getElement().setAttribute("theme", "badge");
This will yield the following badge:
Most likely this got solved when adding the missing attribute support for @CssImport
in #321
Desktop (please complete the following information):
Describe the bug Having follwoing
JsModule
annotation@JsModule("@vaadin/vaadin-lumo-styles/badge")
produces following warning:No Javascript module with the name '@vaadin/vaadin-lumo-styles/badge' could be found. Module ignored.
Using latest Vaadin Business Starter App…