Closed brusand closed 3 years ago
you might want to try with angular 8 instead of 9
I use //ts ignore it id ok
Le lun. 22 juin 2020 à 13:25, Gilad Shoham notifications@github.com a écrit :
you might want to try with angular 8 instead of 9
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/teambit/envs/issues/148#issuecomment-647456314, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMSPMP2B4HYKJMW5KT4KBTRX45SBANCNFSM4OB33TOQ .
Hi, a new version of the Angular compiler was published, please try it, it should be work for you. https://bit.dev/bit/envs/compilers/angular?version=9.0.22
Describe the bug
lines like : @ContentChild(TemplateRef) accordionHeaderTemplate: TemplateRef ;
bit build, generate the error Property 'accordionHeaderTemplate' has no initializer normal TemplateRef is an abstract class , and by default angular compiler setting in tscconfig is
"angularCompilerOptions": {
"strictInjectionParameters": true
},
Steps to Reproduce
1. 2. 3.
Expected Behavior
A clear and concise description of what you expected to happen.
Screenshots, exceptions and logs
If applicable, add screenshots, exceptions, and logs to help explain your problem.
Specifications
Additional context
how to override this option in env/compiler like "bit": { "env": { "compiler": "bit.envs/compilers/angular@9.0.17", "rawConfig": { "tsconfig": { "angularCompilerOptions": { "strictInjectionParameters": false } } } }, Add any other context about the problem here.