-
Notifications
You must be signed in to change notification settings - Fork 1k
SPFx webpart can't be loaded: Cannot read properties of undefined (reading 'id') #10649
Copy link
Copy link
Open
Labels
Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.area:spfxCategory: SharePoint Framework (not extensions related)Category: SharePoint Framework (not extensions related)sharepoint-developer-supportsharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Metadata
Metadata
Assignees
Labels
Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.Awaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.area:spfxCategory: SharePoint Framework (not extensions related)Category: SharePoint Framework (not extensions related)sharepoint-developer-supportsharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
None
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
I am migrating a SPFx solution from 1.9.1 to SPFx 1.22.2. All steps of the migration process were completely sucessfully and all SCSS, TypeScript an eslint errors were solved and the solution is building sucessfully.
However, I am getting this error after deploying the web part to the Site Collection App Catalog:
Could not load my-web-part in require. TypeError: Cannot read properties of undefined (reading 'id')
at sp-pages-assembly_en-us_90032a83f8eaa3f8b6d063951bd8f3bb.js:227:12727
at new Promise ()
at e.loadComponent (sp-pages-assembly_en-us_90032a83f8eaa3f8b6d063951bd8f3bb.js:227:12695)
at sp-pages-assembly_en-us_90032a83f8eaa3f8b6d063951bd8f3bb.js:227:6401
at async Promise.all (/sites/QAS/SitePages/index 0)
I have been searching the web and talking to Copilot but after almost one day of researching and troubleshooting, I was unable to successfully make SharePoint to load the web part.
Can anyone help me to solve this error?
Thanks
Steps to reproduce
Expected behavior
The web part to work properly.