Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team SharePoint Error/Issue :Error: TypeError: Cannot read properties of undefined (reading 'componentType') #12128

Closed
BrucedeMink opened this issue Jul 31, 2024 · 5 comments
Assignees
Labels
investigating needs more info Need user to provide more info TA:E2E Team Area: E2E

Comments

@BrucedeMink
Copy link

BrucedeMink commented Jul 31, 2024

Describe the bug
We use a SharePoint list as our App Hub data source. App Hub is a graphically rendered set of important links for our organisation.
I believe its a Teams/Sharepoint Connection issue.

It quit working 5-6 weeks ago, and I am trying to debug and find a solution.
image

Errors from VS Code Debug Console
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/data-resolvers-search-800d59a7d809cd04.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/data-resolvers-search-800d59a7d809cd04.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/sb-activated-d0f8998e2955846e.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/sb-activated-d0f8998e2955846e.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/563350-31a1680b4c112a85.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/563350-31a1680b4c112a85.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/sb-commanding-complete-f92999da0ed751c5.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/sb-commanding-complete-f92999da0ed751c5.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/365365-4117fee0b040bb6b.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/365365-4117fee0b040bb6b.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/105338-3a758c04cf35bab4.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/105338-3a758c04cf35bab4.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/105705-e45073c89d1973da.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/105705-e45073c89d1973da.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/746643-cc3710175239c505.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/746643-cc3710175239c505.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/960043-ea1fd5e9da773668.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/960043-ea1fd5e9da773668.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/699377-a254b64c820654c8.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/699377-a254b64c820654c8.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/736549-0c6bf6c1230f0cf2.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/736549-0c6bf6c1230f0cf2.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/867964-8fe94c2ffce175cd.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/867964-8fe94c2ffce175cd.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/services-search-930c6c747a1b518e.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/services-search-930c6c747a1b518e.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/299320-f718dc6e1dca9f9e.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/299320-f718dc6e1dca9f9e.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/58150-f5de52cf8e82a0d3.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/58150-f5de52cf8e82a0d3.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/72814-0bf6ff11d2348c80.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/72814-0bf6ff11d2348c80.js.map: undefined
Could not read source map for https://statics.teams.cdn.office.net/teams-modular-packages/hashed-assets/search-app-d6692e415a9ccf16.js: Unexpected 403 response from https://local.teams.office.com/sourcemaps/hashed-assets/search-app-d6692e415a9ccf16.js.map: undefined

image

when I run through the dev tools I see a few errors which I am not sure how to resolve:
image

Expected Resolution
I want to publish the app back into the production environment without errors so our users can start to use it again.

When I run it via local host the solution works this is what it is meant to look like:
image

I am thinking more and more that this is an SSO issue or Authentication issue

Copy link
Contributor

Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.

@microsoft-github-policy-service microsoft-github-policy-service bot added the needs attention This issue needs the attention of a contributor. label Jul 31, 2024
@BrucedeMink BrucedeMink changed the title Team SharePoint Error/Issue :Error: TypeError: Cannot read properties of undefined (reading 'componentType') Team SharePoint Error/Issue :Error: TypeError: Cannot read properties of undefined (reading 'componentType') Needs Attention Jul 31, 2024
@BrucedeMink BrucedeMink changed the title Team SharePoint Error/Issue :Error: TypeError: Cannot read properties of undefined (reading 'componentType') Needs Attention Team SharePoint Error/Issue :Error: TypeError: Cannot read properties of undefined (reading 'componentType') Jul 31, 2024
@adashen adashen added investigating TA:E2E Team Area: E2E labels Aug 1, 2024
@BrucedeMink
Copy link
Author

BrucedeMink commented Aug 1, 2024

image
image
image
image
image

Further Errors I have seen from Teams Side

@ungsdev
Copy link

ungsdev commented Aug 2, 2024

I’ve encountered a similar error before.

If it’s an SPFx-based Tab app, check if the related SharePoint App has been removed or disabled from the Tenant App Catalog.

If it is there correctly, check it is installed on all sites or at least in the top-level site collection.

I hope this helps.

@HuihuiWu-Microsoft
Copy link
Contributor

Hi @BrucedeMink , the SPFx web part wasn't available in SharePoint Online as you showed to me in our last live troubleshooting meeting. So I believe this is not an issue of Teams/SharePoint Auth. It should be something wrong with the deployment itself instead. You could raise an GitHub issue to SPFx team first for further suggestions.
BTW, could you help check whether there're any errors when you build and deploy the SPFx project?

@HuihuiWu-Microsoft HuihuiWu-Microsoft added needs more info Need user to provide more info and removed needs attention This issue needs the attention of a contributor. labels Aug 5, 2024
@HuihuiWu-Microsoft
Copy link
Contributor

As we discussed and connected in another thread, this issue has been resolved. To those who may encounter the same issue, this issue proved to be caused by some configuration settings and the web part was not available in the SharePoint App Center which caused a disconnect between Teams and SharePoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating needs more info Need user to provide more info TA:E2E Team Area: E2E
Projects
None yet
Development

No branches or pull requests

4 participants