Teams Multitab -> Error initializing application. Error: TypeError: Cannot read properties of undefined (reading 'componentType')
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
- [ ] 💥 Internet Explorer
- [ ] 💥 Microsoft Edge
- [X] 💥 Google Chrome
- [ ] 💥 FireFox
- [ ] 💥 Safari
- [ ] mobile (iOS/iPadOS)
- [ ] mobile (Android)
- [ ] not applicable
- [ ] other (enter in the "Additional environment details" area below)
Additional environment details
- SPFx 1.18
- Node.js 16.16
- Chrome v106.0.5249.62
Describe the bug / error
I have been following the "Creating multi-tab Microsoft Teams personal app with SharePoint Framework" YouTube tutorial from the Microsoft 365 Community channel and the tutorial on the Docs and have run into the issue that the webparts deployed for the teams tabs aren't loading.
Giving me the following errors depending on the browser: Chrome: Error: Error initializing application. Error: TypeError: Cannot read properties of undefined (reading 'componentType')
This is my Teams APP Manifest.json:
{ "$schema": "https://developer.microsoft.com/json-schemas/teams/v1.16/MicrosoftTeams.schema.json", "manifestVersion": "1.16", "packageName": "Concierge Cronos", "id": "c3c4b2f7-f6b8-4de9-b7e4-f924583cef3c", "version": "1.0.0", "developer": { "name": "Wagner Murilo Iaschitzki", "websiteUrl": "https://www.example.com.br", "privacyUrl": "https://www.example.com.br", "termsOfUseUrl": "https://www.example.com.br" }, "icons": { "color": "8ec29e61-9c68-49b4-b73b-60891cda820e_color.png", "outline": "8ec29e61-9c68-49b4-b73b-60891cda820e_outline.png" }, "name": { "short": "Concierge Cronos", "full": "Concierge Cronos" }, "description": { "short": "Gerencie o seu dia de trabalho sem sair do Teams!", "full": "Gerencie o seu dia de trabalho sem sair do Teams!" }, "accentColor": "#004578", "staticTabs": [{ "entityId": "100001", "name": "Meu Dashboard", "contentUrl": "https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/teamshostedapp.aspx%3Fteams%26personal%26componentId={8ec29e61-9c68-49b4-b73b-60891cda820e}%26forceLocale={locale}", "websiteUrl": "https://www.example.com.br", "scopes": [ "personal" ] }, { "entityId": "100002", "name": "Meu RH", "contentUrl": "https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/teamshostedapp.aspx%3Fteams%26personal%26componentId={d9038403-0336-488f-8a5e-bd3bd9318398}%26forceLocale={locale}", "websiteUrl": "https://www.example.com.br", "scopes": [ "personal" ] }, { "entityId": "100003", "name": "Configurações", "contentUrl": "https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/teamshostedapp.aspx%3Fteams%26personal%26componentId={e02a3abc-82f0-4cff-bdca-f50bb96a414d}%26forceLocale={locale}", "websiteUrl": "https://www.example.com.br", "scopes": [ "personal" ] } ], "permissions": [ "identity", "messageTeamMembers" ], "validDomains": [ "{teamsitedomain}", ".login.microsoftonline.com", ".sharepoint.com", "spoprod-a.akamaihd.net", "resourceseng.blob.core.windows.net" ], "webApplicationInfo": { "resource": "https://{teamSiteDomain}", "id": "00000003-0000-0ff1-ce00-000000000000" } }
Steps to reproduce
- Generate a SPFx project with the yeoman generator
- Set up to basic webparts to use for the test
- Follow either tutorial to deploy the app into teams
Expected behavior
The webparts load successfully in the teams personal app tabs
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
I have a complement, in my Teams App, when i change between tabs an error is raised in developer tools, as follow:
Hello @nick-pape, any update in this issue?
Hi there, apologies for delay. Would you be able to provide more information here? The error above seems to be related to angular.
Would you be able to get a screenshot/callstack of the: Chrome: Error: Error initializing application. Error: TypeError: Cannot read properties of undefined (reading 'componentType') error?
Lastly, would it be possible to provide more specific repro steps and/or a minimal repro repo that we can investigate?
This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author
Closing issue due to no response from the original author. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: No response from the original issue author