title: ng build -w # ignore non-codebase compilation errors
body: <p>I am using AngularCLI (ng) version 1.6.7. I am getting some compilation from internal libraries that I don't control, for example:</p>
  
  <p><a href="https://github.com/angular/material2/issues/9816" rel="nofollow noreferrer">https://github.com/angular/material2/issues/9816</a></p>
  
  <pre><code>ERROR in node_modules/@angular/material/expansion/typings/expansion-panel.d.ts(36,14): error TS2314: Generic type 'TemplatePortal&lt;C&gt;' requires 1 type argument(s).
  node_modules/@angular/material/tabs/typings/tab-body.d.ts(62,15): error TS2314: Generic type 'TemplatePortal&lt;C&gt;' requires 1 type argument(s).
  node_modules/@angular/material/tabs/typings/tab.d.ts(28,23): error TS2314: Generic type 'TemplatePortal&lt;C&gt;' requires 1 type argument(s).
  </code></pre>
  
  <p>Because of this compilation error, the dist directory won't even get written out, so I'm dead in the water. Is there some flag I can use with <code>ng build -w</code> so that compilation errors are ignored - perhaps compilation errors outside of my codebase?</p>
  
  <p>Something like:</p>
  
  <p><code>ng build -w -i</code>  # where -i ignores errors</p>
  
  <p>I tried <code>ng build --help</code> and I see:</p>
  
  <pre><code>ng build --help
  ng build &lt;options...&gt;
    Builds your app and places it into the output path (dist/ by default).
    aliases: b
    --target (String) (Default: development) Defines the build target.
      aliases: -t &lt;value&gt;, -dev (--target=development), -prod (--target=production), --target &lt;value&gt;
    --environment (String) Defines the build environment.
      aliases: -e &lt;value&gt;, --environment &lt;value&gt;
    --output-path (Path) Path where output will be placed.
      aliases: -op &lt;value&gt;, --outputPath &lt;value&gt;
    --aot (Boolean) Build using Ahead of Time compilation.
      aliases: -aot
    --sourcemaps (Boolean) Output sourcemaps.
      aliases: -sm, --sourcemap, --sourcemaps
    --vendor-chunk (Boolean) Use a separate bundle containing only vendor libraries.
      aliases: -vc, --vendorChunk
    --common-chunk (Boolean) (Default: true) Use a separate bundle containing code used across multiple bundles.
      aliases: -cc, --commonChunk
    --base-href (String) Base url for the application being built.
      aliases: -bh &lt;value&gt;, --baseHref &lt;value&gt;
    --deploy-url (String) URL where files will be deployed.
      aliases: -d &lt;value&gt;, --deployUrl &lt;value&gt;
    --verbose (Boolean) (Default: false) Adds more details to output logging.
      aliases: -v, --verbose
    --progress (Boolean) (Default: true) Log progress to the console while building.
      aliases: -pr, --progress
    --i18n-file (String) Localization file to use for i18n.
      aliases: --i18nFile &lt;value&gt;
    --i18n-format (String) Format of the localization file specified with --i18n-file.
      aliases: --i18nFormat &lt;value&gt;
    --locale (String) Locale to use for i18n.
      aliases: --locale &lt;value&gt;
    --missing-translation (String) How to handle missing translations for i18n.
      aliases: --missingTranslation &lt;value&gt;
    --extract-css (Boolean) Extract css from global styles onto css files instead of js ones.
      aliases: -ec, --extractCss
    --watch (Boolean) (Default: false) Run build when files change.
      aliases: -w, --watch
    --output-hashing=none|all|media|bundles (String) Define the output filename cache-busting hashing mode.
      aliases: -oh &lt;value&gt;, --outputHashing &lt;value&gt;
    --poll (Number) Enable and define the file watching poll time period (milliseconds).
      aliases: -poll &lt;value&gt;
    --app (String) Specifies app name or index to use.
      aliases: -a &lt;value&gt;, -app &lt;value&gt;
    --delete-output-path (Boolean) (Default: true) Delete output path before build.
      aliases: -dop, --deleteOutputPath
    --preserve-symlinks (Boolean) (Default: false) Do not use the real path when resolving modules.
      aliases: --preserveSymlinks
    --extract-licenses (Boolean) (Default: true) Extract all licenses in a separate file, in the case of production builds only.
      aliases: --extractLicenses
    --show-circular-dependencies (Boolean) (Default: true) Show circular dependency warnings on builds.
      aliases: -scd, --showCircularDependencies
    --build-optimizer (Boolean) Enables @angular-devkit/build-optimizer optimizations when using `--aot`.
      aliases: --buildOptimizer
    --named-chunks (Boolean) Use file name for lazy loaded chunks.
      aliases: -nc, --namedChunks
    --subresource-integrity (Boolean) (Default: false) Enables the use of subresource integrity validation.
      aliases: -sri, --subresourceIntegrity
    --bundle-dependencies (none, all) (Default: none) Available on server platform only. Which external dependencies to bundle into the module. By default, all of node_modules will be kept as requires.
      aliases: --bundleDependencies &lt;value&gt;
    --service-worker (Boolean) (Default: true) Generates a service worker config for production builds, if the app has service worker enabled.
      aliases: -sw, --serviceWorker
    --skip-app-shell (Boolean) (Default: false) Flag to prevent building an app shell
      aliases: --skipAppShell
    --stats-json (Boolean) (Default: false) Generates a `stats.json` file which can be analyzed using tools such as: `webpack-bundle-analyzer` or https://webpack.github.io/analyse.
      aliases: --statsJson
  </code></pre>