Skip to content

Commit

Permalink
Provide angularCompilerOptions to ensure compatibility with Ivy (on t…
Browse files Browse the repository at this point in the history
…he 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
  • Loading branch information
earshinov committed Aug 27, 2019
1 parent 7a34226 commit 2888f4c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down

0 comments on commit 2888f4c

Please sign in to comment.