title: Modules has no exported member Component After Updating Angular 8.0
body: <p>Error</p>
  
  <blockquote>
    <p>ERROR in src/app/custom-filterdt/custom-filterdt.component.ts(11,4): error TS2554: Expected 2 arguments, but got 1.</p>
  </blockquote>
  
  <p>Typescript code</p>
  
  <pre><code> import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
   import { DataTableDirective } from 'angular-datatables';
    @Component({
      selector: 'app-custom-filterdt',
      templateUrl: './custom-filterdt.component.html',
      styleUrls: ['./custom-filterdt.component.css']
      })
  </code></pre>
  
  <p>Error in code</p>
  
  <pre><code>import { Component, OnInit, OnDestroy, ViewChild } from '@angular/core';
  </code></pre>
  
  <p>error message</p>
  
  <blockquote>
    <p>import Component
    Module '"../../../node_modules/@angular/core/core"' has no exported member 'Component'.ts(230</p>
  </blockquote>
  
  <p>ng version</p>
  
  <pre><code>                            Angular CLI: 8.0.3
                              Node: 12.4.0
                              OS: win32 x64
                              Angular: 8.0.1
                              ... animations, cdk, common, compiler, compiler-cli, core, forms
                              ... language-service, material, platform-browser
                              ... platform-browser-dynamic, router, service-worker
  
                              Package                           Version
                              -----------------------------------------------------------
                              @angular-devkit/architect         0.800.3
                              @angular-devkit/build-angular     0.800.3
                              @angular-devkit/build-optimizer   0.800.3
                              @angular-devkit/build-webpack     0.800.3
                              @angular-devkit/core              8.0.3
                              @angular-devkit/schematics        8.0.3
                              @angular/cli                      8.0.3
                              @angular/http                     7.2.15
                              @angular/pwa                      0.800.3
                              @ngtools/webpack                  8.0.3
                              @schematics/angular               8.0.3
                              @schematics/update                0.800.3 (cli-only)
                              rxjs                              6.5.2
                              typescript                        3.4.5
                              webpack                           4.30.0
  </code></pre>
  
  <ul>
  <li>Any help is most welcome</li>
  </ul>
  
  <p>Above problem Get solved by deleting node module</p>
  
  <p>But after this new error</p>
  
  <blockquote>
    <p>Expected 2 arguments, but got 1.ts(2554)
    core.d.ts(8064, 47): An argument for 'opts' was not provided</p>
  </blockquote>
  
  <pre><code> viewchild @ViewChild('maincontent') mainContent: any; An argument for 'opts' was not provided.  error TS2554: Expected 2 arguments, but got 1 in v8
  </code></pre>
  
  <p>Typescript</p>
  
  <pre><code> export class ViewchildexampleComponent implements OnInit {
   @ViewChild('maincontent') mainContent: any;
  </code></pre>