ngx-bootstrap: Can't resolve all parameters for TooltipOptions
Just updated to version 1.3.3, but having this error while doing AoT compilation:
Can't resolve all parameters for TooltipOptions in path/node_modules/ng2-bootstrap/tooltip/tooltip-options.class.d.ts
I’m not using TooltipOptions anywhere. Using webpack 2.2.1, TS 2.1.5, Angular 4.0.beta6.
On JiT works fine.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 8
- Comments: 15 (5 by maintainers)
https://github.com/valor-software/ng2-bootstrap/releases/tag/v1.4.0
published
Updated cli to rc.0 tomorrow I want to release 2 versions With ng v2 and 4
I’m dying here waiting for the fix 😦
@valorkin Please note an interesting side effect. In my code I use lazy load, AOT compilation and shared factory where init and expose all ng2-bootstrap modules across the app.
When I import all modules directly as @Iverson suggested
import { TooltipModule } from 'ng2-bootstrap/tooltip/tooltip.module'the size of vendor.bundle.js becomes slightly bigger, but lazy loaded chunks which use shared ng2-bootstrap modules become much smaller.In result my total AoT tree-shaked, minified and compressed production build is 200kb lighter.
I use Angular 2.4.8, CLI RC0
@Iverson I don’t import this module anywhere and still get the error.
I found workaround:
instead of
just don’t import deprecated
ng2-bootstrap/tooltip/tooltip-options.class.jswhich exported automatically fromng2-bootstrap/tooltip/index.js