title: Angular 6: Failed to compile: Can't resolve 'stream' in ./node_modules/hash-base
body: <p>I updated three Angular 5 apps to Angular 6 but the last one gives me troubles.
  Every time i try to compile (serve/build, jit/aot, dev/prod) i get this errror:</p>
  
  <pre><code>ERROR in ./node_modules/hash-base/index.js
  Module not found: Error: Can't resolve 'stream' in '[...]/node_modules/hash-base'
  ℹ ｢wdm｣: Failed to compile.
  </code></pre>
  
  <p>hash-base seems to be a webpack dependency:</p>
  
  <pre><code>@eagle5/editor-app@0.2.6
  └─┬ @angular-devkit/build-angular@0.6.1
    └─┬ webpack@4.6.0
      └─┬ node-libs-browser@2.1.0
        └─┬ crypto-browserify@3.12.0
          └─┬ create-hash@1.2.0
            ├─┬ md5.js@1.3.4
            │ └── hash-base@3.0.4 
            └─┬ ripemd160@2.0.2
              └── hash-base@3.0.4  deduped
  </code></pre>
  
  <p>Some specialties of this app are that i have a framework in ./src beside the app folder and i install a git repository as npm package and import some typescript definitions like so in my tsconfig.json:</p>
  
  <pre><code>{
    "compileOnSave": false,
    "compilerOptions": {
      "outDir": "./dist/out-tsc",
      "baseUrl": "src",
      "sourceMap": true,
      "declaration": false,
      "moduleResolution": "node",
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "target": "es5",
      "typeRoots": [
        "node_modules/@types"
      ],
      "lib": [
        "es2017",
        "dom"
      ],
      "paths": {
        "@nettrek/*": [
          "./@nettrek/*"
        ]
      }
    },
    "include": [
      "./src/**/*",
      "./node_modules/@eagle5/player-core/dto/**/*"
    ],
    "angularCompilerOptions": {
      "preserveWhitespaces": false
    }
  }
  </code></pre>
  
  <p>I tried to install <a href="https://www.npmjs.com/package/stream" rel="nofollow noreferrer">this</a> stream npm package but this version doesn't has the stream.Transform extension that hash-base uses.</p>
  
  <p>I tried node 8.11.1 and 10.1.0</p>