Skip to content

compiler_cli_1.readConfiguration is not a function #12999

@SampleTest786

Description

@SampleTest786

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions