Angular CLI: 1.6.0
Node: 8.4.0
OS: linux x64
Angular: 5.1.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
@angular/cdk: 5.0.1
@angular/cli: 1.6.0
@angular/material: 5.0.1
@angular-devkit/build-optimizer: 0.0.35
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.41
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.0
@schematics/angular: 0.1.10
@schematics/schematics: 0.0.10
typescript: 2.5.3
webpack: 3.7.1
The following error is thrown
Error: Chunk cannot be found.
Chunk cannot be found.
Guidance towards fixing the error, the error shouldn't occur
Closing...
Duplicate of angular/devkit#297
As a workaround, just delete the lines that import RouterModule (where you import it from @angular/router and also where you inject it in the @NgModule conifg) and let the cli generate them. You can add your route definitions afterwards.
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._
Most helpful comment
As a workaround, just delete the lines that import RouterModule (where you import it from @angular/router and also where you inject it in the @NgModule conifg) and let the cli generate them. You can add your route definitions afterwards.