title: ng serve command generates error Duplicate identifier 'export='
body: <p>Whenever I run ng serve or npm start, I get the following error : <strong>error TS2300: Duplicate identifier 'export='.</strong>
  in two files.</p>
  
  <p>First one : <strong>module.d.ts</strong></p>
  
  <pre><code>declare module "module" {
      export = NodeJS.Module;
  }
  </code></pre>
  
  <p>second one : <strong>index.d.ts</strong></p>
  
  <pre><code>declare module 'module' {
      var mod: {
          config: () =&gt; any;
          id: string;
          uri: string;
      }
      export = mod;
  }
  </code></pre>
  
  <ul>
  <li>1: I changed the names won't work. </li>
  <li>2: delete node module and do npm install not working either. </li>
  <li>3: some exclude terminology also not working.</li>
  </ul>
  
  <p>Please provide some solution.
  <a href="https://i.stack.imgur.com/VbKtt.png" rel="nofollow noreferrer">check image for more clarification</a></p>