From 2888f4cb1154cba8572de891c9511b021a453737 Mon Sep 17 00:00:00 2001 From: Eugene Arshinov Date: Tue, 27 Aug 2019 12:22:59 +0300 Subject: [PATCH] Provide angularCompilerOptions to ensure compatibility with Ivy (on the application side) Without this configuration, the following error occurs: ``` error TS-996002: Appears in the NgModule.imports of ...Module, but could not be resolved to an NgModule class ``` Configuruation taken from https://github.com/froala/angular-froala-wysiwyg/pull/329/files#diff-bb630a56aac9aa4924037d7db039769d --- src/tsconfig.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/tsconfig.json b/src/tsconfig.json index c62575b..ff2f2f3 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -17,6 +17,13 @@ "noUnusedParameters": false, "lib": ["dom", "es6"] }, + "angularCompilerOptions": { + "annotateForClosureCompiler": true, + "strictMetadataEmit": true, + "skipTemplateCodegen": true, + "flatModuleOutFile": "ng2-file-upload.js", + "flatModuleId": "ng2-file-upload" + }, "include": [ "../scripts/typings.d.ts" ],