Open restfulhead opened 2 years ago
For anyone who is looking at this, currently, in the most recent version of Teams UI Component Library, the dashboard is meant only to be used for chart types, as mentioned in issue #101 this is by design. To fix this issue, the work that needs to be done is to use the placeholder object type instead of the current React Node. It would also be helpful to update the type documentation to reflect that.
https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/tab-ui-templates/ts
Expected: The sample up uses a recent version.
Actual: Dependencies from almost a year ago:
Tried upgrading, but causes errors such as
Type 'Element' is not assignable to type 'TWidgetContent'.
This seems to be related to https://github.com/OfficeDev/microsoft-teams-ui-component-library/issues/101. In there it says it's not supported, yet the sample code attempts to do this.Can the sample app be upgraded or is there another app that I could take a look at that isn't outdated?