🐞SPFx v1.8.1 Regression with MSFT Teams Tabs? #3826
Labels
area:spfx
Category: SharePoint Framework (not extensions related)
status:fixed-next-drop
Issue planned to be fixed in an upcoming release.
status:tracked
Currently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)
type:bug-suspected
Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Category
Expected or Desired Behavior
I believe this is a bug... as I can't find a mention of this in the release notes for 1.8.1.
In SPFx v1.8.1, when you create new SPFx project, you should be able to access the MSFT Teams context via
this.context.microsoftTeams...
. This worked in v1.8.0, but in 1.8.1, themicrosoftTeams
property is not defined.Digging deeper, the
BaseClientSideWebPart
WebPartContext
object appears to have changed from v1.8.0 => v1.8.1:/* Excluded from this release type: microsoftTeams */
Whereas in SPFx 1.8.0 it was:
Observed Behavior
This code triggers a build error in an SPFx v1.8.1 web part project:
Steps to Reproduce
ensure install SPFx v1.8.1 is installed
create new SFPx web part
add the following code to the web part
run
gulp build
& observe errorsrepeat the same process above, but with SPFx v1.8.0 installed... observe it builds without error
The text was updated successfully, but these errors were encountered: