title: Uncaught TypeError: Cannot read property 'version' of undefined at buttons.flash.js when run datatable angular directive
body: <p>I install the data table angular directive from the <a href="https://l-lin.github.io/angular-datatables/#/getting-started" rel="nofollow noreferrer">https://l-lin.github.io/angular-datatables/#/getting-started</a></p>
  
  <p>install the data table button extension from <a href="https://l-lin.github.io/angular-datatables/#/extensions/buttons" rel="nofollow noreferrer">https://l-lin.github.io/angular-datatables/#/extensions/buttons</a></p>
  
  <h2>angular.json</h2>
  
  <pre><code>"styles": [
                "src/styles.css",
                "node_modules/bootstrap/dist/css/bootstrap.min.css",
                "node_modules/datatables.net-dt/css/jquery.dataTables.css",
                "node_modules/datatables.net-buttons-dt/css/buttons.dataTables.css"
              ],
              "scripts": [
                "node_modules/jquery/dist/jquery.js",
                "node_modules/datatables.net/js/jquery.dataTables.js",
                "node_modules/datatables.net-buttons/js/buttons.colVis.js",
                "node_modules/datatables.net-buttons/js/buttons.flash.js",
                "node_modules/datatables.net-buttons/js/buttons.html5.js",
                "node_modules/datatables.net-buttons/js/buttons.print.js"
              ]
            },
  </code></pre>
  
  <h2>package.json</h2>
  
  <pre><code> "dependencies": {
      "@angular/animations": "6.0.7",
      "@angular/common": "6.0.7",
      "@angular/compiler": "6.0.7",
      "@angular/core": "6.0.7",
      "@angular/forms": "6.0.7",
      "@angular/http": "6.0.7",
      "@angular/platform-browser": "6.0.7",
      "@angular/platform-browser-dynamic": "6.0.7",
      "@angular/platform-server": "6.0.7",
      "@angular/router": "6.0.7",
      "@nguniversal/module-map-ngfactory-loader": "^5.0.0-beta.5",
      "angular-datatables": "^6.0.0",
      "aspnet-prerendering": "^3.0.1",
      "bootstrap": "^3.3.7",
      "core-js": "^2.4.1",
      "datatables.net": "^1.10.19",
      "datatables.net-buttons": "^1.5.3",
      "datatables.net-buttons-dt": "^1.5.3",
      "datatables.net-dt": "^1.10.19",
      "jquery": "^3.3.1",
      "jszip": "^3.1.5",
      "rxjs": "^6.2.1",
      "zone.js": "^0.8.26"
    },
  </code></pre>
  
  <p>when I run this project then return the error like this :<a href="https://i.stack.imgur.com/CrFga.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p><strong>Uncaught TypeError: Cannot read property 'version' of undefined at buttons.flash.js</strong></p>