Open geoffreymwangian opened 7 years ago
import { SocketIoModule, SocketIoConfig } from 'ng-socket-io'; const config: SocketIoConfig = { url: 'http://localhost:8988', options: {} }; @NgModule({ declarations: [ AppComponent ], imports: [ BrowserModule, SocketIoModule.forRoot(config) ], }) export class AppModule { }
Am now getting an error of Unexpected value '[object Object]' imported by the module 'AppModule'. Please add a @NgModule annotation
In the latest release of angular2 only modules can be imported in the imports area , please fix this
I am also getting same kind error after upgrade Angular to latest version. I was working fine before upgrade . Any fix for this issue ?
upgrade to ngx-socket-io
Am now getting an error of Unexpected value '[object Object]' imported by the module 'AppModule'. Please add a @NgModule annotation
In the latest release of angular2 only modules can be imported in the imports area , please fix this