com.vaadin.flow.component.dependency.

Annotation Type NpmPackage

    • Required Element Summary

      Required Elements
      Modifier and Type Required Element and Description
      String value

      NPM package to install before loading any JS modules declared using JsModule.

      String version

      Defines the NPM package version.

    • Element Detail

      • value

        public abstract String value

        NPM package to install before loading any JS modules declared using JsModule.

        Returns:

        an NPM JavaScript package

      • version

        public abstract String version

        Defines the NPM package version. It should meet the 'd.d.d' or the 'd.d.d-suffix' pattern.

        Troubleshooting: when two or more annotations with the same package value are found in the class-path, and their versions do not match the build process will fail.

        Returns:

        NPM package version