При попытке добавить пакет npm в мою библиотеку Angular появляется следующая ошибка.
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 (<anonymous>)
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 (<anonymous>)
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)
Я где-то читал, что это из-за компиляции AOT и не поддерживает лямбда-функции.