carbon-components-angular
carbon-components-angular copied to clipboard
dropdown module - build/compile time issue
Hi Team,
I am facing below issue while importing the IBM-Carbon-Dorpdown (Carbon Angular components).
<ibm-dropdown size="lg" label="something" placeholder="Select" (selected)="onSelected($event)" > <ibm-dropdown-list [items]="arrayData" (select)="onSelect($event)">
./src/app/login/components/login.component.ngfactory.js Module not found: Error: Can't resolve '../../../../node_modules/carbon-components-angular/dropdown/carbon-components-angular-dropdown.ngfactory' in '\src\app\login\components'
Module was imported successfully
import { TabsModule, DropdownModule} from "carbon-components-angular";
@NgModule({ imports: [TabsModule, DropdownModule], exports: [TabsModule, DropdownModule] })
I am able to use the **"< ibm-tab-header-group >< ibm-tab-header >" ** component in the same module/angular components.
Kindly help me to resolve the issue so that i can proceed with Angular carbon components.
More Details:
"Angular Version": "11.2.14" "carbon-components": "^10.41.0", "carbon-components-angular": "^4.55.4"
Let me know if you need more information from my side.
If you're updating from carbon 8 to 10, you're spanning a few major versions of carbon-components, and of carbon-components-angular. Both had quite a few breaking changes that you need to address.
Check out migration guides at
- https://github.com/IBM/carbon-components-angular/wiki
- https://www.carbondesignsystem.com/help/migration-guide/overview/
- https://update.angular.io/
Here are some other resources you might find useful. You might have seen some of these before.
General information
Demos/Stories: https://angular.carbondesignsystem.com Documentation: https://angular.carbondesignsystem.com/documentation/ Repository: https://github.com/ibm/carbon-components-angular Wiki: https://github.com/IBM/carbon-components-angular/wiki
Getting started
Tutorial: https://www.carbondesignsystem.com/developing/angular-tutorial/overview Starter app: https://github.com/carbon-design-system/carbon-angular-starter Official Angular tutorial: https://angular.io/tutorial
Carbon resources
Carbon website: https://www.carbondesignsystem.com/ Icon library: https://www.carbondesignsystem.com/guidelines/icons/library Icons package: https://github.com/carbon-design-system/carbon/tree/main/packages/icons Theme usage: https://www.carbondesignsystem.com/guidelines/themes/code
Also, check out the dropdown demo (and its code tab): https://angular.carbondesignsystem.com/?path=/story/components-dropdown--basic