ngx-bootstrap: Unknown option: '--component'
Probably just a document issue. When use ng add as in the document states, it has the following error:
# ng add ngx-bootstrap --component buttons
Skipping installation: Package already installed
Unknown option: '--component'
Unknown option: 'buttons'
Versions of ngx-bootstrap, Angular, and Bootstrap:
ngx-bootstrap: 5.5.0
Angular: 9.0.4
Bootstrap: 4.4.1
Build system: Angular CLI
Expected behavior
there is no ‘–component’ option in the latest ng add command. Ether an alternative way needs to be added to install the component, or the wrong command should be replaced in the document.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 30
- Comments: 18 (1 by maintainers)
This is still an issue.
I am also facing exactly the same issue. Is there any alternate way to add the component to angular project?
Workaround: Install ngx-bootstrap from npm
npm install ngx-bootstrap --saveAdd needed package to NgModule imports: