question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

angularCompiler.getNextProgram is not a function

See original GitHub issue

Lately 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:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
just-jebcommented, May 15, 2021

Angular and @angular-builders major versions should match. If you’re using Angular 12 you’re welcome to check out the 12.0.0-beta.0 version of the builder that has been released yesterday.

1reaction
just-jebcommented, May 18, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found