sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SPFx not loading, error: internalInitialize is missing an expected member

Open gagan2singh opened this issue 7 years ago • 5 comments

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.

gagan2singh avatar Mar 15 '19 22:03 gagan2singh

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msft-github-bot avatar Mar 15 '19 22:03 msft-github-bot

Hi @gagan2singh - is the issue reproducing if you remove the custom elements from the page (other component on the page like angular and Jquery)?

VesaJuvonen avatar Apr 18 '19 17:04 VesaJuvonen

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.

msft-github-bot avatar Apr 25 '19 18:04 msft-github-bot

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.

msft-github-bot avatar May 02 '19 19:05 msft-github-bot

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

msft-github-bot avatar Jan 25 '20 00:01 msft-github-bot