title: TypeError: angularCompiler.getNextProgram is not a function
body: <p>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 commands.</p>
  <ol>
  <li><code>npm install</code></li>
  <li><code>ng serve</code></li>
  </ol>
  <p>But I got below errors and can't run the project.
  I read <a href="https://stackoverflow.com/questions/65849026/errors-after-npm-audit-fix-angular-10-0-1">this question</a> but it not worked for me.</p>
  <pre><code>Error: ./src/main.ts
  Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
  TypeError: angularCompiler.getNextProgram is not a function
      at C:\Users\thimira_p\Desktop\itrd\epic-itrda-web\node_modules\@ngtools\webpack\src\ivy\plugin.js:376:100
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
  
  Error: ./src/polyfills.ts
  Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
  TypeError: angularCompiler.getNextProgram is not a function
      at C:\Users\thimira_p\Desktop\itrd\epic-itrda-web\node_modules\@ngtools\webpack\src\ivy\plugin.js:376:100
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
  
  Error: (webpack)-dev-server/client?http://0.0.0.0:0&amp;sockPath=/sockjs-node
  Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
  TypeError: angularCompiler.getNextProgram is not a function
      at C:\Users\thimira_p\Desktop\itrd\epic-itrda-web\node_modules\@ngtools\webpack\src\ivy\plugin.js:376:100
      at processTicksAndRejections (internal/process/task_queues.js:93:5)
  </code></pre>
  <p>How to fix this issue?</p>