-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Table]: Slot headerRow
not defined
#6344
Comments
Hi @skowrons, I would assume this is due to some duplicates in the node_modules?
I would assume that somewhere in the dependency tree, the v1 of UI5 Web Components is showing up. Other than that, I would suggest to remove the |
Hi @MarcusNotheis, thank you very much for your suggestions. We removed the outdated But we were able to reproduce the problem in a fresh stackblitz: https://stackblitz.com/edit/github-vgt75e?file=src%2FApp.tsx Seams like the problem is when we import the normal package and the compat one (needed for the older but more customisable toolbar). |
Hi @skowrons this seems to be related to the tree shaking capabilities of vite in dev mode (related issue). UI5 web components are imported using side-effect imports, and our root index files export all components. Since tree shaking isn't enabled, or at least doesn't work in the same way as for a prod build, all side-effect imports are included. This leads to duplicate imports which then can override implementations like in this case. Currently, I can't think of a satisfactory solution, but as a workaround you can import all components from the If you already want to test this behavior, then you can use this snapshot version: Here you can find the updated StackBlitz template: https://stackblitz.com/edit/github-vgt75e-ddatpf?file=src%2FApp.tsx,package.json |
With v2.1.1, it's now possible to use file/deep imports (StackBlitz example). Additionally, we've updated our documentation to reference these types of imports for the I've also created an issue in the ui5-webcomponents repo regarding the duplicate custom element tags when both the Since there's unfortunately nothing else we can do at this time, I'm going to close this issue. |
Wow, thank you so much @MarcusNotheis and @Lukas742 for all your hard work and effort on this issue. I just wanted to mention that we tried using the vite-entry-three-shaking plugin (https://github.com/Dschungelabenteuer/vite-plugin-entry-shaking), but unfortunately, it didn't solve our problem. In the end, we copied your toolbar into our project and completely removed the compatibility package. |
Describe the bug
We upgraded our app to the newest version and trying this simple code:
And we are getting the following error:
Currently we are not able to reproduce this bug in StackBlitz and just want to ask for some help.
Our Versions:
Isolated Example
No response
Reproduction steps
We can not reproduce the bug in a plane environment.
Expected Behaviour
No response
Screenshots or Videos
No response
UI5 Web Components for React Version
2.1.0
UI5 Web Components Version
2.2.0
Browser
Chrome
Operating System
Mac OS
Additional Context
No response
Relevant log output
No response
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: