I convert an angular 2 project to angular6. When am trying to build the project after the conversion am getting the below error ....How ever I have deleted the node_modules folder and recreated it ..
compiler_cli_1.readConfiguration is not a function
TypeError: compiler_cli_1.readConfiguration is not a function
at AngularCompilerPlugin._setupOptions (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:100:39)
at new AngularCompilerPlugin (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:53:14)
at _createAotPlugin (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models\webpack-configs\typescript.js:41:12)
at Object.getNonAotConfig (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models\webpack-configs\typescript.js:47:19)
at BrowserBuilder.buildWebpackConfig (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\src\browser\index.js:84:37)
at DevServerBuilder.buildWebpackConfig (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\src\dev-server\index.js:111:46)
at MergeMapSubscriber.check_port_1.checkPort.pipe.operators_1.concatMap [as project] (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\src\dev-server\index.js:38:40)
at MergeMapSubscriber._tryNext (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internal\operators\mergeMap.js:69:27)
at MergeMapSubscriber._next (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internal\operators\mergeMap.js:59:18)
at MergeMapSubscriber.Subscriber.next (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internalSubscriber.js:67:18)
at TapSubscriber._next (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internal\operators\tap.js:65:26)
at TapSubscriber.Subscriber.next (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internalSubscriber.js:67:18)
at MergeMapSubscriber.notifyNext (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internal\operators\mergeMap.js:92:26)
at InnerSubscriber._next (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internal\InnerSubscriber.js:28:21)
at InnerSubscriber.Subscriber.next (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internalSubscriber.js:67:18)
at ForkJoinSubscriber.notifyComplete (C:\Work\Personal\Tech3Hub\LMS\LMSFrontEnd\lms-frontend-master (1)\lms-frontend-master\node_modules\@angular-devkit\build-angular\node_modules\rxjs\internal\observable\forkJoin.js:82:25)
Thanks for reporting this issue. However, you didn't provide sufficient information for us to understand and reproduce the problem. Please check out our submission guidelines to understand why we can't act on issues that are lacking important information.
If the problem persists, please file a new issue and ensure you provide all of the required information when filling out the issue template.
Hi @SampleTest786,
Please follow the template. Issues with only a log like this are hard if not impossible to investigate and fix. Thank you.
@SampleTest786 do this ng update @angular/compiler-cli --force
I encountered the same problem, the solution of @amarg26 works!
@amarg26 Thanks, the solution worked!
@SampleTest786 do this
ng update @angular/compiler-cli --force
Thank you so much!!!
@amarg26 solution worked for me
The @amarg26 's solution also worked for me :)
it worked for me too , thank you
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
@SampleTest786 do this
ng update @angular/compiler-cli --force