SPFx not loading, error: internalInitialize is missing an expected member
Category
- [x] Question
- [ ] Typo
- [x] Bug
- [ ] Additional article idea
SPFX version: 1.7
We are getting this error message on classic page while it's fine on modern page with default layout. Webparts randomly showing and throwing errors, but mostly throwing this error with following technical details:
Uncaught (in promise) Error: The class for web part WebPart.HelloworldWebPart.external.g_fe8443bc_4fe3_4704_b2f8_9b0f3fcfb514,_internalInitialize is missing an expected member '{1}'
***CALLSTACK: Uncaught (in promise) Error: The class for web part WebPart.HelloworldWebPart.external.g_fe8443bc_4fe3_4704_b2f8_9b0f3fcfb514,_internalInitialize is missing an expected member '{1}'. at t [as constructor] (sp-classic-page-assembly_en-au_b115808908a821320028693285305786.js:187) at new t (sp-classic-page-assembly_en-au_b115808908a821320028693285305786.js:287) at Function.t.createWithLogProperties (sp-classic-page-assembly_en-au_b115808908a821320028693285305786.js:287) at e._instantiateWebPart (sp-classic-page-assembly_en-au_b115808908a821320028693285305786.js:287) at e._initializeWebPart (sp-classic-page-assembly_en-au_b115808908a821320028693285305786.js:287) at sp-classic-page-assembly_en-au_b115808908a821320028693285305786.js:287
Any idea what's happening here?
Edit: I ran this on workbench/gulp serve and it works fine. Only happened once its deployed.
There are other component on the page like angular and Jquery, which may be causing this issue, but not sure why those will not allow the react to load the application.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Hi @gagan2singh - is the issue reproducing if you remove the custom elements from the page (other component on the page like angular and Jquery)?
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 next 7 days of this comment. Thank you for your contributions to SharePoint Developer activities.
Closing issue due no response from original author. If this issue is still occurring, please open a new issue with additional details. Notice that if you have included another related issue as additional comment on this, please open that also as separate issue, so that we can track it independently.
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues