angularCompiler.getNextProgram is not a function
See original GitHub issueLately angular 12 is released, I’m using following command to optimize my project:
ng build --configuration=production --build-optimizer --optimization --progress
but I get the following error:
Error: ./src/main.ts
Module build failed (from ./node_modules/@angular-builders/custom-webpack/node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/index.js):
TypeError: angularCompiler.getNextProgram is not a function
at D:\Sources\******\Apps\******-Angular\node_modules\@angular-builders\custom-webpack\node_modules\@angular-devkit\build-angular\node_modules\@ngtools\webpack\src\ivy\plugin.js:390:61
at processTicksAndRejections (internal/process/task_queues.js:97:5)
@ multi ./src/main.ts main[0]
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:5 (3 by maintainers)
Top Results From Across the Web
TypeError: angularCompiler.getNextProgram is not a function
I'm using angular 11.2 in my machine and I want to run a angular 12 project. After clone from git, I ran below...
Read more >DevAsking.com - The issue AngularCompiler.getNextProgram...
The issue AngularCompiler.getNextProgram is not a function, angular 12 & custom-webpa has new answer.
Read more >New Section - Angular Components and Core Directives
TypeError : angularCompiler.getDiagnosticsForFile is not a function at C:\Users\fio\angular-course\node_modules\@ngtools\webpack\src\ivy\plugin.js:384:60
Read more >@angular/compiler-cli@15.0.4 - jsDocs.io
This is used to work out if the given path is relative (i.e. not absolute) but also is not escaping the current directory....
Read more >[Solved]-db.createIndex is not a function-angular.js
defineMetadata is not a function on Angular 7 Production Build · map is not a function (Rxjs) though import · TypeError: angularCompiler.getNextProgram is ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Angular and
@angular-builders
major versions should match. If you’re using Angular 12 you’re welcome to check out the12.0.0-beta.0
version of the builder that has been released yesterday.Seems that the for now all the arising issues are related to Webpack itself and not to the builder so I can actually release it.