ankosoftware / ng2-bootstrap-modal

Library to simplify the work with bootstrap modal dialogs
MIT License
54 stars 62 forks source link

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

Open charlesrajan opened 7 years ago

charlesrajan commented 7 years ago

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

bikalay commented 7 years ago

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 commented 7 years ago

@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 commented 7 years ago

Please reopen if it's still not working

ashlesha86 commented 7 years ago

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

lchimaru commented 7 years ago

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

bikalay commented 7 years ago

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

lchimaru commented 7 years ago

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

bikalay commented 7 years ago

@lchimaru Thank you. I'll check it today

bikalay commented 7 years ago

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