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

react-directory - web part throws ERROR: [object Object] for normal users #5388

Open
3 of 9 tasks
johndiehlwh opened this issue Jan 29, 2025 · 3 comments
Open
3 of 9 tasks
Labels
type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs

Comments

@johndiehlwh
Copy link

Disclaimer

Yes

Sample

https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-directory

Contributor(s)

@joaojmendes @petkir @sudharsank @Abderahman88 @Sandeep-FED

What happened?

Normal users cannot see this web part for some reason, they receive a ERROR: [object Object]. On my admin account I am able to see this web part, though.

Image

Steps to reproduce

  1. gulp bundle --ship
  2. gulp package-solution --ship

Expected behavior

Users should be able to see the web part. Is this a rights issue? Is there something wrong within the web part? Would really appreciate some help!

Target SharePoint environment

SharePoint Online

Developer environment

Windows

Browsers

  • Internet Explorer
  • Microsoft Edge
  • Google Chrome
  • FireFox
  • Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

What version of Node.js is currently installed on your workstation?

v18.20.6

What version of Node.js is required by the sample?

v18

Paste the results of SPFx doctor

√ SharePoint Framework v1.20.0
√ Node v18.20.6
√ yo v5.1.0
√ gulp-cli v3.0.0
√ bundled typescript used
[
{
"check": "SharePoint Framework",
"passed": true,
"version": "1.20.0",
"message": "SharePoint Framework v1.20.0 valid."
},
{
"check": "SharePoint Framework",
"passed": true,
"version": "1.20.0",
"message": "SharePoint Framework v1.20.0"
},
{
"check": "Node",
"passed": true,
"message": "Node v18.20.6",
"version": "18.20.6"
},
{
"check": "yo",
"passed": true,
"message": "yo v5.1.0",
"version": "5.1.0"
},
{
"check": "gulp-cli",
"passed": true,
"message": "gulp-cli v3.0.0",
"version": "3.0.0"
},
{
"check": "typescript",
"passed": true,
"message": "bundled typescript used"
}
]

Additional environment details

Using SharePoint Online

@johndiehlwh johndiehlwh added the type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs label Jan 29, 2025
@gretchunkim
Copy link
Contributor

gretchunkim commented Jan 30, 2025

Where did you upload the .sppkg file in app catalog?
I just compiled the solution and deployed for users without any issue:

Image

@johndiehlwh
Copy link
Author

Where did you upload the .sppkg file in app catalog? I just compiled the solution and deployed for users without any issue:

Image

Hmm.. question, is your CDN enabled?

@gretchunkim
Copy link
Contributor

Yes it is, both private and public.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs
Projects
None yet
Development

No branches or pull requests

2 participants