Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 'fullTemplateTypeCheck' #122

Closed
Enngage opened this issue Jan 31, 2018 · 11 comments
Closed

Support 'fullTemplateTypeCheck' #122

Enngage opened this issue Jan 31, 2018 · 11 comments

Comments

@Enngage
Copy link

Enngage commented Jan 31, 2018

Hi,

Currently compiling your library with fullTemplateTypeCheck angular option (introduced very recently) fails with just a few minor issues.

Could you take a look at those? Currently I can't use the option because of these errors.

@Ks89
Copy link
Owner

Ks89 commented Jan 31, 2018

Ok. I'll check tomorrow.

Are you talking about version 5.0.0 beta?

@Enngage
Copy link
Author

Enngage commented Jan 31, 2018

Yup. Cool :)

@Ks89
Copy link
Owner

Ks89 commented Feb 1, 2018

I tried but I cannot reproduce this issue.
Are you really really sure that you are using 5.0.0-beta.1? If yes, can you try to use my official example with angular-cli here https://github.com/Ks89/angular-modal-gallery/tree/v4/examples/angular-cli?

@Enngage
Copy link
Author

Enngage commented Feb 1, 2018 via email

@Ks89
Copy link
Owner

Ks89 commented Feb 1, 2018

@Enngage I cannot reproduce this issue (with --aot).

Please could you get this example https://github.com/Ks89/angular-modal-gallery/tree/v4/examples/angular-cli (install all deps with npm i) and try to build it by yourself? I really don't know what can I do to understand the problem. I suggest to try to compare it with your code.

PS: could you share your log with errors?

@Enngage
Copy link
Author

Enngage commented Feb 16, 2018

I'm seeing following errors with the latest beta-2:

err

This seems to be coming from the library so I don't think my code is the problem. Maybe this is also related to 'strictNullChecks' ts config which I have enabled on my end as it is recommended.

@Ks89
Copy link
Owner

Ks89 commented Feb 16, 2018

mmm, probably yes, it is 'strictNullChecks'. I'll check this weekend

@Ks89
Copy link
Owner

Ks89 commented Feb 17, 2018

@Enngage you are right, this happens when you enable 'strictNullChecks'.

However the typescript's error is so ambiguous that It's difficult to understand the problem (this issue microsoft/TypeScript#8274 should be really closed :)). I need a couple of days to fix this. When I'm ready to close this issue, I'll release RC1.
Thank you for the hint of strictNullChecks.

PS: I'm adding to all tsconfig files of both the lib and the official examples this:

"angularCompilerOptions": {
    "fullTemplateTypeCheck": true,
    "preserveWhiteSpace": false,
    "strictInjectionParameters": true,
    "strictNullChecks": true
  },

Do you suggest to add other params to angularCompilerOptions?

Ks89 added a commit that referenced this issue Feb 17, 2018
…eck+preserveWhiteSpace+strictInjectionParameters+strictNullChecks to all examples. Reported by @Enngage #122
@Ks89
Copy link
Owner

Ks89 commented Feb 17, 2018

Fixed. Simpler than I expected.

I'll release RC1 this evening.

@Ks89 Ks89 closed this as completed Feb 17, 2018
@Ks89
Copy link
Owner

Ks89 commented Feb 17, 2018

RC1 released right now 👍

@Enngage
Copy link
Author

Enngage commented Feb 20, 2018

Thanks :) I can confirm it works fine now. As for the CompilerOptions - that seems to be for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants