title: Cannot find module 'fs' or its corresponding type declarations
body: <p>I can't get typescript to recognize 'fs' module.
  I get the following error:</p>
  <pre><code>    Error: src/app/components/drops/drops-map/drops-map.component.ts:9:29 - error TS2307: Cannot find module 'fs' or its corresponding type declarations.
  
  9 import {readFileSync}  from 'fs';
  </code></pre>
  <p>I installed the definitions via:</p>
  <pre><code> npm i @types/node --save-dev
  </code></pre>
  <p>I checked and the fs.d.ts is correctly placed in node_modules/@types/node folder</p>
  <p>this is my tsconfig.json</p>
  <pre><code>{
    &quot;compileOnSave&quot;: false,
    &quot;compilerOptions&quot;: {
      &quot;baseUrl&quot;: &quot;./&quot;,
      &quot;outDir&quot;: &quot;./dist/out-tsc&quot;,
      &quot;forceConsistentCasingInFileNames&quot;: true,
      &quot;strict&quot;: true,
      &quot;noImplicitReturns&quot;: true,
      &quot;noFallthroughCasesInSwitch&quot;: true,
      &quot;sourceMap&quot;: true,
      &quot;declaration&quot;: false,
      &quot;downlevelIteration&quot;: true,
      &quot;experimentalDecorators&quot;: true,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;importHelpers&quot;: true,
      &quot;target&quot;: &quot;es2015&quot;,
      &quot;module&quot;: &quot;es2020&quot;,
      &quot;lib&quot;: [
        &quot;es2018&quot;,
        &quot;dom&quot;
      ],
      &quot;typeRoots&quot;: [
        &quot;node_modules/@types&quot;,
        &quot;node_modules/@types/node&quot;
      ],
    },
    &quot;angularCompilerOptions&quot;: {
      &quot;strictInjectionParameters&quot;: true,
      &quot;strictInputAccessModifiers&quot;: true,
      &quot;strictTemplates&quot;: true
    }
  }
  </code></pre>
  <p>I deleted the node_modules and reinstalled with npm install with no success.</p>
  <p>and lastly this is my package.json</p>
  <pre><code>{
    &quot;name&quot;: &quot;myapp&quot;,
    &quot;version&quot;: &quot;0.0.0&quot;,
    &quot;scripts&quot;: {
      &quot;ng&quot;: &quot;ng&quot;,
      &quot;start&quot;: &quot;ng serve&quot;,
      &quot;build&quot;: &quot;ng build&quot;,
      &quot;watch&quot;: &quot;ng build --watch --configuration development&quot;,
      &quot;test&quot;: &quot;ng test&quot;
    },
    &quot;private&quot;: true,
    &quot;dependencies&quot;: {
      &quot;@angular/animations&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/cdk&quot;: &quot;^13.0.2&quot;,
      &quot;@angular/common&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/compiler&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/core&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/fire&quot;: &quot;^7.2.0&quot;,
      &quot;@angular/flex-layout&quot;: &quot;^12.0.0-beta.35&quot;,
      &quot;@angular/forms&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/google-maps&quot;: &quot;^13.0.2&quot;,
      &quot;@angular/material&quot;: &quot;^13.0.2&quot;,
      &quot;@angular/platform-browser&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/platform-browser-dynamic&quot;: &quot;~13.0.0&quot;,
      &quot;@angular/router&quot;: &quot;~13.0.0&quot;,
      &quot;@googlemaps/markerclustererplus&quot;: &quot;^1.2.8&quot;,
      &quot;@zxing/browser&quot;: &quot;^0.0.10&quot;,
      &quot;@zxing/library&quot;: &quot;^0.18.6&quot;,
      &quot;@zxing/ngx-scanner&quot;: &quot;^3.3.0&quot;,
      &quot;firebase&quot;: &quot;^9.4.0&quot;,
      &quot;rxfire&quot;: &quot;^6.0.0&quot;,
      &quot;rxjs&quot;: &quot;~7.4.0&quot;,
      &quot;tslib&quot;: &quot;^2.3.0&quot;,
      &quot;zone.js&quot;: &quot;~0.11.4&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@angular-devkit/build-angular&quot;: &quot;~13.0.2&quot;,
      &quot;@angular/cli&quot;: &quot;~13.0.2&quot;,
      &quot;@angular/compiler-cli&quot;: &quot;~13.0.0&quot;,
      &quot;@types/google.maps&quot;: &quot;^3.46.1&quot;,
      &quot;@types/jasmine&quot;: &quot;~3.10.0&quot;,
      &quot;@types/node&quot;: &quot;^12.20.37&quot;,
      &quot;jasmine-core&quot;: &quot;~3.10.0&quot;,
      &quot;karma&quot;: &quot;~6.3.0&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.7.0&quot;,
      &quot;typescript&quot;: &quot;~4.4.3&quot;
    }
  }
  </code></pre>
  <p>please help</p>