Enterprise-ng: Component library does not support strict compiler option

Created on 4 Mar 2020  路  9Comments  路  Source: infor-design/enterprise-ng

Describe the bug

TypeScript 2.3 introduced a new --strict compiler option that enables a number of other compiler options related to stricter type checking. These can be enabled in the tsconfig.json file in the root of the project.

However, the current code base does not compile when this option is set.

This makes it difficult (if not impossible) for downstream teams to enabling strict type checking in their applications.

To Reproduce

Checkout latest code from http://

Edit the tsconfig.json in the root folder, adding the following to the existing code block:

 "compilerOptions": {
    "strict": true,
   },

Then run:

npm i
npm run build:lib
npm run build

This fails with numerous errors.

Expected behavior

It should be possible to compile both the components and the demo application in strict mode.

Version

  • ids-enterprise-ng: v7.0.0

Screenshots

N/A

Platform

  • All

Additional context

N/A

[5] type

All 9 comments

Any ideas what we can do about this? I can take a look if given a hint?

I have a branch I was working on : see https://github.com/infor-design/enterprise-ng/tree/empty-message-strict-error. Just fixing all the issues.

So we just need to update that branch and then fix any errors? Or what should i test.

There's are still numerous issues, let me take a quick look.

There are still lots of issues, which although not complicated take time. It's not that important an issue to rush though.

@ahnpnl - feel free to grab the branch and fixup some of the issues, I've not got a lot of time to spend on this at the moment. @tmcconechy did you get much further with this one?

I think we should first fix the NG 10 and get that in. And then restart this on a fresh branch. The branch has gotten out of date. Im comfortable on this one but would like to see master updated to NG 10 first and redo the branch.

When thats done perhaps 2 people can divide and conquer - the branch is just out of date so this has to be done fairly quickly i think.

so depends on #858

Was this page helpful?
0 / 5 - 0 ratings