Ngx-bootstrap: Support for RC6

Created on 1 Sep 2016  路  15Comments  路  Source: valor-software/ngx-bootstrap

I just upgraded to RC6, and now webpack is giving errors:

[default] /Users/pgkehle/projects/security-portal/node_modules/ng2-bootstrap/components/datepicker/datepicker-popup.component.d.ts:1:10
    Module '"/Users/pgkehle/projects/security-portal/node_modules/@angular/core/index"' has no exported member 'DynamicComponentLoader'.
[default] /Users/pgkehle/projects/security-portal/node_modules/ng2-bootstrap/components/tooltip/tooltip.directive.d.ts:1:10
    Module '"/Users/pgkehle/projects/security-portal/node_modules/@angular/core/index"' has no exported member 'DynamicComponentLoader'.
[default] /Users/pgkehle/projects/security-portal/node_modules/ng2-bootstrap/components/typeahead/typeahead.directive.d.ts:1:54
    Module '"/Users/pgkehle/projects/security-portal/node_modules/@angular/core/index"' has no exported member 'DynamicComponentLoader'.
[default] /Users/pgkehle/projects/security-portal/node_modules/ng2-bootstrap/components/utils/components-helper.service.d.ts:1:58
    Module '"/Users/pgkehle/projects/security-portal/node_modules/@angular/core/index"' has no exported member 'ComponentResolver'.
[default] /Users/pgkehle/projects/security-portal/node_modules/ng2-bootstrap/components/utils/components-helper.service.d.ts:42:32
    Generic type 'Type<T>' requires 1 type argument(s).

From here: http://stackoverflow.com/questions/38332249/angular-2-rc4-dynamiccomponentloader-deprecated

ComponentResolver and ViewContainerRef are alternatives.

Most helpful comment

@sprypradeep this is already fixed in master. We must wait until @valorkin merged the PR https://github.com/valor-software/ng2-bootstrap/pull/909 and created a new npm release (1.1.1). I hope he will do it tomorrow :)

All 15 comments

Same thing here.
Every @Component usage is getting the"@angular/core/index" has no exported member 'ComponentResolver' error message.

Yeah, according to the changelog for RC6, https://github.com/angular/angular/blob/master/CHANGELOG.md, ComponentResolver is deprecated.

core: deprecated ComponentResolver was removed. Please use ComponentFactoryResolver instead.

Also:

core: Type is now Type<T> which means that in most cases you have to use Type<any> in place of Type.

Seems ng2-bootstrap 1.1 is out, with upgrades to RC6.. let's give it a try

Thank you so much for all your hard work, guys
update: sorry, no 1.1.0 is for RC5.

@valorkin can you please publish a new npm release 1.1.1 (1.1.0 is RC5)? But before please merge PR https://github.com/valor-software/ng2-bootstrap/pull/909

also waiting for npm release 1.1.1 to support RC6 :)

Need to make changes to components-helper.service.d.ts

core: merge Type and ConcreteType into Type (#10616) (b96869a), closes #9729

https://github.com/angular/angular/pull/10616

just to complement @sprypradeep.

I get the error below when using angular-rc6 with ng2-bootstrap 1.1.0:

.../node_modules/ng2-bootstrap/components/utils/components-helper.service.d.ts(2,10): error TS2305: Module '".../node_modules/@angular/core/src/facade/lang"' has no exported member 'ConcreteType'.

@sprypradeep this is already fixed in master. We must wait until @valorkin merged the PR https://github.com/valor-software/ng2-bootstrap/pull/909 and created a new npm release (1.1.1). I hope he will do it tomorrow :)

Same problem here:

ng2-bootstrap/components/utils/components-helper.service.d.ts(2,10): error TS2305: Module '.../client/node_modules/@angular/core/src/facade/lang"' has no exported member 'ConcreteType'.

a new release would be nice :)

Thank you for the quick work!

Thank you!, I just updated my project and it's working.

Glad to hear it helped :)

import { Component,OnInit,ModuleWithProviders,ViewContainerRef,Injector,DynamicComponentLoader} from '@angular/core';
file: 'file:///Users/ashwini/Documents/angular-quickstart/app/app.component.ts'
severity: 'Error'
'"/Documents/angular-quickstart/node_modules/@angular/core/index"'
has no exported member 'DynamicComponentLoader'.'

Update ng2 bootstrap to latest

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juanitavollmering picture juanitavollmering  路  3Comments

srjkrl20011991 picture srjkrl20011991  路  3Comments

MihaiHoriaPopescu picture MihaiHoriaPopescu  路  3Comments

ravirajhalli picture ravirajhalli  路  3Comments

RolfVeinoeSorensen picture RolfVeinoeSorensen  路  3Comments