Closed eductech closed 1 year ago
@frank-weindel would you be able to take a look at this issue? Thanks!
@eductech I tried reproducing your issue but was unable to. I've created a repo of my attempt so you can take a look: https://github.com/frank-weindel/lighnting-sdk-358-repro
Let me know if you have the problem even in that project.
@frank-weindel thanks for looking into it. Issue reported is not reproducible in case of your example.
I made use of yours package versions and yours ts config - to check if error will be still reproducible in case of my repo. Unfortunately it is still there.
@eductech Please share a minimal reproduction of the issue if possible. We won't be able to derive the root cause of the issue without it.
@frank-weindel please check this https://github.com/eductech/lighnting-sdk-358-repro/tree/strict-false. This is fork of https://github.com/frank-weindel/lighnting-sdk-358-repro. The only thing changed on strict-false
branch - strict: false
was set in tsconfig.json
Sorry that it was not spotted at very beginning. This exactly what differs ts configuration from your example, and in this case error is reproducible.
UPDATE
As we figured out strictNullChecks
does the job. When it set to true
- error disappears.
Thanks @eductech for that repro! I've submitted a PR to update the documentation to hopefully avoid others from having this issue in the future. Let us know how the rest of your experience using TypeScript with Lightning continues to go. Cheers.
Hi.
We spotted some issues during typescript usage .
Example:
this.tag emits ts error:
Package versions:
Let me know if I'm doing something wrong or if you need any other info.