UI5 Web Components for Angular provides directives for each UI5 Web Component. The directives allow to easily build your Angular application following the SAP Design System.
When installing the package using the commands "npm install @ui5/webcomponents-ngx" and "ng add @ui5/webcomponents-ngx", the following packages are not automatically installed:
@ui5/webcomponents-fiori
@ui5/webcomponents
@ui5/webcomponents-base
The project cannot be started until the user manually installs all the above packages.
Expected Behavior
The commands "npm install @ui5/webcomponents-ngx" and "ng add @ui5/webcomponents-ngx" should install the following packages:
@ui5/webcomponents-ngx
@ui5/webcomponents-fiori
@ui5/webcomponents
@ui5/webcomponents-base
Steps to Reproduce
Create a new Angular project using the command "ng new "
Run the command "npm install @ui5/webcomponents-ngx" OR "ng add @ui5/webcomponents-ngx"
Run the command "npm install @ui5/theming-ngx" OR "ng add @ui5/theming-ngx"
Create ui5 component(s) in app.component.html with valid properties and values, ex. ui5-shellbar
Add "import { Ui5AngularModule } from '@ui5/webcomponents-ngx';" in app.module.ts
Add "Ui5AngularModule" to @NgModule.imports in app.module.ts
Attempt to start the project using the command "npm run start" OR "ng serve"
See errors in command line
Context
UI5 Web Components ngx version: 0.0.1-rc.2
Angular Version: 15.1.3
Log Output / Stack Trace / Screenshots
Example of errors:
./node_modules/@ui5/webcomponents-ngx/fesm2020/ui5-webcomponents-ngx.mjs:4:0-46 - Error: Module not found: Error: Can't resolve '@ui5/webcomponents-fiori/dist/Bar.js' in '/Users/I584835/new-angular-proj/mock-project/node_modules/@ui5/webcomponents-ngx/fesm2020'
./node_modules/@ui5/webcomponents-ngx/fesm2020/ui5-webcomponents-ngx.mjs:34:0-43 - Error: Module not found: Error: Can't resolve '@ui5/webcomponents/dist/Avatar.js' in '/Users/I584835/new-angular-proj/mock-project/node_modules/@ui5/webcomponents-ngx/fesm2020'
./node_modules/@ui5/webcomponents-ngx/fesm2020/ui5-webcomponents-ngx.mjs:116:0-72 - Error: Module not found: Error: Can't resolve '@ui5/webcomponents-base/dist/config/Theme.js' in '/Users/I584835/new-angular-proj/mock-project/node_modules/@ui5/webcomponents-ngx/fesm2020'
Bug Description
When installing the package using the commands "npm install @ui5/webcomponents-ngx" and "ng add @ui5/webcomponents-ngx", the following packages are not automatically installed:
The project cannot be started until the user manually installs all the above packages.
Expected Behavior
The commands "npm install @ui5/webcomponents-ngx" and "ng add @ui5/webcomponents-ngx" should install the following packages:
Steps to Reproduce
Context
Log Output / Stack Trace / Screenshots
Example of errors:
./node_modules/@ui5/webcomponents-ngx/fesm2020/ui5-webcomponents-ngx.mjs:4:0-46 - Error: Module not found: Error: Can't resolve '@ui5/webcomponents-fiori/dist/Bar.js' in '/Users/I584835/new-angular-proj/mock-project/node_modules/@ui5/webcomponents-ngx/fesm2020'
./node_modules/@ui5/webcomponents-ngx/fesm2020/ui5-webcomponents-ngx.mjs:34:0-43 - Error: Module not found: Error: Can't resolve '@ui5/webcomponents/dist/Avatar.js' in '/Users/I584835/new-angular-proj/mock-project/node_modules/@ui5/webcomponents-ngx/fesm2020'
./node_modules/@ui5/webcomponents-ngx/fesm2020/ui5-webcomponents-ngx.mjs:116:0-72 - Error: Module not found: Error: Can't resolve '@ui5/webcomponents-base/dist/config/Theme.js' in '/Users/I584835/new-angular-proj/mock-project/node_modules/@ui5/webcomponents-ngx/fesm2020'
Priority