ng2-bootstrap-modal icon indicating copy to clipboard operation
ng2-bootstrap-modal copied to clipboard

Unexpected value 'BootstrapModalModule' imported by the module 'AppModule'

Open charlesrajan opened this issue 9 years ago • 9 comments

Imported BootstrapModalModule in my appmodule, there is no compilation error but unable to load my page. Error: Unexpected value 'BootstrapModalModule' imported by the module 'AppModule'. i am using webpack . plz help

charlesrajan avatar Feb 09 '17 05:02 charlesrajan

Hi @charlesrajan, what version of webpack you were using? Please show me your tsconfig file. You can try to use angular-cli. But i will investigate your error. Thank you for feedback.

bikalay avatar Feb 10 '17 11:02 bikalay

@charlesrajan I added precompilation, i hope it will help. Try to change dependency to git repository ("ng2-bootstrap-modal": "git+https://github.com/ankosoftware/ng2-bootstrap-modal.git"), in your package.json and give me feedback please.

bikalay avatar Feb 10 '17 12:02 bikalay

Please reopen if it's still not working

bikalay avatar Feb 15 '17 16:02 bikalay

hello, i also get Unexpected value 'BootstrapModalModule' imported by the module 'AppModule'. can anyone please help? i also tried changing dependency to git repo "ng2-bootstrap-modal": "git+https://github.com/ankosoftware/ng2-bootstrap-modal.git". but it did not work.

Thanks

ashlesha86 avatar Feb 22 '17 07:02 ashlesha86

Same problem here, even if npm dependency source changed to github.

lchimaru avatar Mar 02 '17 12:03 lchimaru

Hm. I still can't reproduce but try it now (version 1.0.0) A added AoT support may be it helps.

bikalay avatar Mar 05 '17 21:03 bikalay

Problem still exists. You can reproduce it with newest version of wepack+angular pack: https://github.com/preboot/angular2-webpack

lchimaru avatar Mar 07 '17 07:03 lchimaru

@lchimaru Thank you. I'll check it today

bikalay avatar Mar 07 '17 09:03 bikalay

It works fine for me. My fork with test dialog: https://github.com/bikalay/angular2-webpack I have no idea why this problem appears...

bikalay avatar Mar 08 '17 18:03 bikalay