Skip to content

[icons]: @ui5/webcomponents-icons/dist/Assets.js is a noop #13417

@jak-ch-ll

Description

@jak-ch-ll

Bug Description

@ui5/webcomponents-icons/dist/Assets.js imports @ui5/webcomponents-icons/dist/generated/json-imports/i18n.js, which is just an empty export.

Priority

None

UI5 Web Components Version

2.21.1

Additional Context

This means it is currently not possible with default options to get rid of the warning "[@ui5/webcomponents-icons]: Message bundle assets are not configured. Falling back to English texts. Add import "@ui5/webcomponents-icons/dist/Assets.js" in your bundle and make sure your build tool supports dynamic imports and JSON imports. See section "Assets" in the documentation for more information.".

Generally it would be nice if it was possible to suppress these kinds of warnings, independent of the fix to the actual functionality. There are different reasons for that (e.g. testing or just no need for the default tooltips)

If setFetchDefaultLanguage(true) is set this additionally triggers the warning "[@ui5/webcomponents-icons]: Message bundle assets are not configured. Falling back to English texts. Add import "@ui5/webcomponents-icons/dist/Assets.js" in your bundle and make sure your build tool supports dynamic imports and JSON imports. See section "Assets" in the documentation for more information."

Organization

aconso

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions