Skip to content

Commit 2888f4c

Browse files
committed
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
1 parent 7a34226 commit 2888f4c

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
"noUnusedParameters": false,
1818
"lib": ["dom", "es6"]
1919
},
20+
"angularCompilerOptions": {
21+
"annotateForClosureCompiler": true,
22+
"strictMetadataEmit": true,
23+
"skipTemplateCodegen": true,
24+
"flatModuleOutFile": "ng2-file-upload.js",
25+
"flatModuleId": "ng2-file-upload"
26+
},
2027
"include": [
2128
"../scripts/typings.d.ts"
2229
],

0 commit comments

Comments
 (0)