ERROR in Cannot use 'in' operator to search for 'providers' in null
Please provide us with the following information:
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
WIndows 10 Pro
Versions.
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
angular-cli: 1.0.0-beta.24 node: 6.3.1 os: win32 x64 @angular/common: 2.4.1 @angular/compiler: 2.4.1 @angular/core: 2.4.1 @angular/forms: 2.4.1 @angular/http: 2.4.1 @angular/platform-browser: 2.4.1 @angular/platform-browser-dynamic: 2.4.1 @angular/router: 3.4.1 @angular/compiler-cli: 2.4.1
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
Brand new project created with CLI version beta 24. Adding module loading via routing loadChildren
The log given by the failure.
Normally this include a stack trace and some more information.
ERROR in Cannot use 'in' operator to search for 'providers' in null
Mention any other details that might be useful.
Issues appears when using lazy loading, for example I have HomeModule, if I were to import that to app.module.ts, and have my routing configured as:
app.routing.ts
const appRoutes: Routes = [
{
path: '',
redirectTo: '/home',
pathMatch: 'full'
},
{
path: 'home',
loadChildren: './home/home.module'
}
];
export const Routing = RouterModule.forRoot(appRoutes);
app.module.ts
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
HomeModule,
Routing
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Then the ERROR in Cannot use 'in' operator to search for 'providers' in null appears.
Thanks! We'll be in touch soon.
@stephenad I did not say that, @DilipKumarPogaku did.
You would have to import your jszip on your component you want to use it on. It is not a module so you cannot import it as a module.
@penleychan I was not implying you had said anything about @DilipKumarPogaku comment, sorry if I caused confusion.
Ok thanks
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.