pnp / pnp/sp-dev-fx-controls-react

spfx-controls-react: Cannot read properties of undefined (reading 'call')

Open
#1,630 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted type:question v1
Dominant language
TypeScript
Stars
433
Forks
418
Avg merge
5d 6m
Merged PRs (30d)
19

Description

Hello,
I get this error when I try to use all controls except WebPartTitle and Placeholder:
[SPLoaderError.loadComponentError]:
***Failed to load component "6ac657b4-924c-4182-9eba-7f6dacc68b22" .
Original error: ***Failed to load entry point from component "6ac657b4-924c-4182-9eba-7f6dacc68b22".
Original error: Error loading https://component-id.invalid/6ac657b4-924c-4182-9eba-7f6dacc68b22_1.0.0
Cannot read properties of undefined (reading 'call')

***INNERERROR:
***Failed to load entry point from component "6ac657b4-924c-4182-9eba-7f6dacc68b22".
Original error: Error loading https://component-id.invalid/6ac657b4-924c-4182-9eba-7f6dacc68b22_1.0.0
Cannot read properties of undefined (reading 'call')
***CALLSTACK:
Error
at t [as constructor] (........../_layouts/15/next/spclient/en-us/sp-webpart-workbench-assembly.js?uniqueId=tdfWh:297:15766)
at new t (......./_layouts/15/next/spclient/en-us/sp-webpart-workbench-assembly.js?uniqueId=tdfWh:928:22189)
at e.buildErrorWithVerboseLog (........../_layouts/15/next/spclient/en-us/sp-webpart-workbench-assembly.js?uniqueId=tdfWh:928:14423)
at e.buildLoadComponentError (........../_layouts/15/next/spclient/en-us/sp-webpart-workbench-assembly.js?uniqueId=tdfWh:928:10844)
at ....../_layouts/15/next/spclient/en-us/sp-webpart-workbench-assembly.js?uniqueId=tdfWh:928:62110

Versions:
spfx-controls-react version: 1.21.1
SPFx: 1.4
SharePoint 2019 onPrem.

Any idea please?

Thanks

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with spfx-controls-react 1.21.1 on SPFx 1.4 and SharePoint 2019 onPrem, then inspect the reported component entry point and the SharePoint workbench loader error. The issue is complete when the affected controls load successfully or the supported-version incompatibility and required fix are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.