Skip to content

Vite building issue when importing components from "@ui5/webcomponents-react/wrappers" #6337

Answered by Lukas742
lance315 asked this question in Q&A
Discussion options

You must be logged in to vote

In the wrappers folder all web components ((...)/wrappers/webComponents/[componentName]/index.js) come without the import for the respective web component, whereas in the dist folder all web components ((...)/dist/webComponents/[componentName]/index.js) are imported.

Take the Avatar for example:

When you're importing from root (e.g. import {Avatar} from "@ui5/webcompon…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lance315
Comment options

@Lukas742
Comment options

Answer selected by lance315
@lance315
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants