Wrapper generation fails if there is a duplicate component class in different webc package
ilhan007 opened this issue · 0 comments
Bug Description
If there is a web component with the same name although in different package, as for example Button class in the ai library and Button in the "main" library, the wrapper generation fails.
Fails as in the generated index file two modules (from different locations) are exported under the same name "ButtonComponent".
export { ButtonComponent } from '@ui5/webcomponents-ngx/main/button';
export { ButtonComponent } from '@ui5/webcomponents-ngx/ai/button';
Until now the generation script did not expect name duplications of components (even though the components are in different packages/libraries) like the one described above.
Steps to Reproduce
- Setup the project to output wrappers for "ai" package (in addition to main and fiori)
- Run yarn build
- The output shows that there are two exports with the same name "ButtonComponent"
export { ButtonComponent } from '@ui5/webcomponents-ngx/main/button';)
export { ButtonComponent } from '@ui5/webcomponents-ngx/ai/button';
Context
- UI5 Web Components version: latest
- UI5 Web Components for Angular version: latest
- Angular Version: {...}
- OS/Platform: {...}
- Browser: {...}
- Affected component: ui5-ai-button
Log Output / Stack Trace / Screenshots
{...}
Priority
- Low
- Medium
- High
- Very High
The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:
- Breaks entire application or system - High or Very High
- Accessibility issue - Medium or High
- Functional issue - Medium or High
- Visual issue - Low or Medium
Note: The priority might be re-evaluated by the issue processor.
Stakeholder Info (if applicable)
- Organization: {...}
- Business impact: {...}