-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
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\internal\Subscriber.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\internal\Subscriber.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\internal\Subscriber.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)