Ngx-bootstrap: 1.1.14 webpack warnings

Created on 13 Oct 2016  路  12Comments  路  Source: valor-software/ngx-bootstrap

Hi guys,

there are webpack warnings

./~/ng2-bootstrap/bundles/ng2-bootstrap.umd.js
Critical dependencies:
1:3743-3750 require function is used in a way in which dependencies cannot be statically extracted
1:3789-3796 require function is used in a way in which dependencies cannot be statically extracted
@ ./~/ng2-bootstrap/bundles/ng2-bootstrap.umd.js 1:3743-3750 1:3789-3796
bundle.js:122 ./~/ng2-bootstrap/bundles/ng2-bootstrap.umd.min.js
Critical dependencies:
1:3743-3750 require function is used in a way in which dependencies cannot be statically extracted
1:3789-3796 require function is used in a way in which dependencies cannot be statically extracted
@ ./~/ng2-bootstrap/bundles/ng2-bootstrap.umd.min.js 1:3743-3750 1:3789-3796

actually happens after update to 1.1.14

Most helpful comment

This issue happens to often, so in next version it will be just 'ng2-bootstrap'. No worries, old code will still be working, but will show deprecation warning

All 12 comments

not good, hm

I'm getting this on Angular 2.1 with the latest version of ng2-bootstrap.
Any updates on possible causes?

Don't use bundle with webpack! At least for now :)
Use ng2-bootstrap/ng2-bootstrap

Not using the bundle works.

who is in slack and able to fast check beta version with another UMD file?

Any news on this? The issue still exists on version 1.1.16.

What does it mean "use ng2-bootstrap/ng2-bootstrap"? How do I do that?

@BigRomanov instead of import { ModuleName } from "ng2-bootstrap", use import { ModuleName } from "ng2-bootstrap/ng2-bootstrap"

This issue happens to often, so in next version it will be just 'ng2-bootstrap'. No worries, old code will still be working, but will show deprecation warning

I may have found a new case of this bug. When I use @ViewChild() with timepicker via a local variable I get the webpack warning. When I do not use @ViewChild() no warning happens. I am importing from "ng2-bootstrap/ng2-bootstrap".

Hi, I am getting this error when using
NG 2.1
NG2-BOOTSTRAP 1.1.16
WEBPACK 1.13.3

I am using the import format
import { ModuleName } from "ng2-bootstrap/ng2-bootstrap"

@valorkin what did you mean by:
Don't use bundle with webpack! At least for now :)

Is that the solution to this problem?

Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tpiros picture tpiros  路  3Comments

tuoitrexuquang picture tuoitrexuquang  路  3Comments

KimBum picture KimBum  路  3Comments

Scooviese picture Scooviese  路  3Comments

webdev48 picture webdev48  路  3Comments