title: Adding an npm package to angular library
body: <p>I get the following error when I try to add a npm package to my Angular library. </p>
  
  <pre><code> Metadata collected contains an error that will be reported at runtime: Lambda not supported.
    {"__symbolic":"error","message":"Lambda not supported","line":12,"character":20}
      at Object.getOwnPropertyNames.forEach.name (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler-cli\src\metadata\collector.js:648:31)
      at Array.forEach (&lt;anonymous&gt;)
      at validateMetadata (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler-cli\src\metadata\collector.js:636:46)
      at MetadataCollector.getMetadata (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler-cli\src\metadata\collector.js:492:21)
      at MetadataCache.getMetadata (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler-cli\src\transformers\metadata_cache.js:59:43)
      at Object.getSourceFileMetadata (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:110:55)
      at Object.readMetadata (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler-cli\src\transformers\metadata_reader.js:45:39)
      at TsCompilerAotCompilerTypeCheckHostAdapter.getMetadataFor (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler-cli\src\transformers\compiler_host.js:466:38)
      at StaticSymbolResolver.getModuleMetadata (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler\bundles\compiler.umd.js:23164:49)
      at StaticSymbolResolver.hasDecorators (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler\bundles\compiler.umd.js:22922:33)
      at analyzeFile (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler\bundles\compiler.umd.js:24332:50)
      at AotCompiler._analyzeFile (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler\bundles\compiler.umd.js:23729:21)
      at C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler\bundles\compiler.umd.js:23824:74
      at Array.map (&lt;anonymous&gt;)
      at AotCompiler.loadFilesAsync (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler\bundles\compiler.umd.js:23824:35)
      at Promise.resolve.then (C:\projects\Foundation\New folder\rate-grid-ui\node_modules\@angular\compiler-cli\src\transformers\program.js:181:38)
  </code></pre>
  
  <p>I read somewhere this is due to AOT compilation and it doesn't support lambda functions.</p>