shlomiassaf / ngx-modialog

Modal / Dialog for Angular
http://shlomiassaf.github.io/ngx-modialog
MIT License
686 stars 242 forks source link

@NgModule issue with Angular 4 and ngx-modialog #402

Open denismaster opened 6 years ago

denismaster commented 6 years ago

ERROR in Unexpected value 'BootstrapModalModule in C:/Users/XRM/Documents/repairPayments/micro/Xrm.Micro/Xrm.Micro/node_modules/ngx-modialog/plugins/bootstrap/src/bootstrap.module.d.ts' imported by the module 'AppModule in C:/Users/XRM/Documents/repairPayments/micro/Xrm.Micro/Xrm.Micro/ClientApp/app/app.module.ts'. Please add a @NgModule annotation.

celestale commented 6 years ago

Same issue

Uncaught Error: Unexpected value '[object Object]' imported by the module 'AppModule'. Please add a @NgModule annotation.
    at syntaxError
shlomiassaf commented 6 years ago

Is this still relevant? there is a new version (5) that works with angular v5.

Also, make sure you are working with the supported TypeScript version for your angular version, the error you have hints that you are using a TS version not supported by angualr.