title: Angular 13 Webpack Exception: TypeError: Cannot read properties of undefined (reading 'NODE_DEBUG')
body: <p>After upgrading to Angular 13 the application no longer works during runtime.  From what I've read NODE_DEBUG is Webpack specific and for some reason is not recognized when running the application with an 'ng serve'.  I've also recently upgraded to macOS Monterey.  I've very stuck at the moment....</p>
  <p>package.json</p>
  <pre><code>{
      &quot;dependencies&quot;: {
      &quot;@angular-devkit/schematics&quot;: &quot;^13.1.2&quot;,
      &quot;@angular/animations&quot;: &quot;~13.1.1&quot;,
      &quot;@angular/cdk&quot;: &quot;^13.1.0&quot;,
      &quot;@angular/common&quot;: &quot;~13.1.1&quot;,
      &quot;@angular/compiler&quot;: &quot;~13.1.1&quot;,
      &quot;@angular/core&quot;: &quot;~13.1.1&quot;,
      &quot;@angular/fire&quot;: &quot;^7.2.0&quot;,
      &quot;@angular/forms&quot;: &quot;~13.1.1&quot;,
      &quot;@angular/material&quot;: &quot;^13.1.0&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~13.1.1&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~13.1.1&quot;,
      &quot;@angular/router&quot;: &quot;~13.1.1&quot;,
      &quot;@angular/service-worker&quot;: &quot;~13.1.1&quot;,
      &quot;@costlydeveloper/ngx-awesome-popup&quot;: &quot;^2.2.0&quot;,
      &quot;@types/uuid&quot;: &quot;^8.3.0&quot;,
      &quot;buffer&quot;: &quot;^6.0.3&quot;,
      &quot;crypto-js&quot;: &quot;^4.1.1&quot;,
      &quot;firebase&quot;: &quot;9.6.1&quot;,
      &quot;jsonwebtoken&quot;: &quot;^8.5.1&quot;,
      &quot;jsstore&quot;: &quot;4.3.6&quot;,
      &quot;ngx-currency&quot;: &quot;^2.5.2&quot;,
      &quot;ramda&quot;: &quot;^0.27.1&quot;,
      &quot;rxjs&quot;: &quot;~6.6.7&quot;,
      &quot;service&quot;: &quot;^0.1.4&quot;,
      &quot;stream-browserify&quot;: &quot;^3.0.0&quot;,
      &quot;tslib&quot;: &quot;^2.3.1&quot;,
      &quot;util&quot;: &quot;^0.12.4&quot;,
      &quot;uuid&quot;: &quot;^8.3.2&quot;,
      &quot;zone.js&quot;: &quot;~0.11.4&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular-devkit/architect&quot;: &quot;0.1301.2&quot;,
      &quot;@angular-devkit/build-angular&quot;: &quot;^13.1.2&quot;,
      &quot;@angular/cli&quot;: &quot;~13.1.2&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~13.1.1&quot;,
      &quot;@types/crypto-js&quot;: &quot;^4.0.2&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.6.0&quot;,
      &quot;@types/jsonwebtoken&quot;: &quot;8.5.4&quot;,
      &quot;@types/node&quot;: &quot;^16.11.2&quot;,
      &quot;@types/ramda&quot;: &quot;0.27.60&quot;,
      &quot;codelyzer&quot;: &quot;^6.0.2&quot;,
      &quot;firebase-tools&quot;: &quot;~9.23.1&quot;,
      &quot;fuzzy&quot;: &quot;^0.1.3&quot;,
      &quot;inquirer&quot;: &quot;^8.2.0&quot;,
      &quot;inquirer-autocomplete-prompt&quot;: &quot;^1.4.0&quot;,
      &quot;jasmine-core&quot;: &quot;~3.10.1&quot;,
      &quot;jasmine-spec-reporter&quot;: &quot;~7.0.0&quot;,
      &quot;jsonc-parser&quot;: &quot;^3.0.0&quot;,
      &quot;karma&quot;: &quot;~6.3.9&quot;,
      &quot;karma-chrome-launcher&quot;: &quot;~3.1.0&quot;,
      &quot;karma-coverage&quot;: &quot;~2.0.3&quot;,
      &quot;karma-jasmine&quot;: &quot;~4.0.0&quot;,
      &quot;karma-jasmine-html-reporter&quot;: &quot;^1.5.0&quot;,
      &quot;open&quot;: &quot;^8.4.0&quot;,
      &quot;protractor&quot;: &quot;~7.0.0&quot;,
      &quot;ts-node&quot;: &quot;~10.4.0&quot;,
      &quot;tslint&quot;: &quot;~6.1.3&quot;,
      &quot;typescript&quot;: &quot;~4.5.3&quot;
  }
  </code></pre>
  <p>Error:</p>
  <p><a href="https://i.stack.imgur.com/ivn9Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ivn9Z.png" alt="enter image description here" /></a></p>