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 Content Query Online - Throws error on loading web part #5349

Open
1 of 9 tasks
maj-jacob opened this issue Nov 21, 2024 · 6 comments
Open
1 of 9 tasks

React Content Query Online - Throws error on loading web part #5349

maj-jacob opened this issue Nov 21, 2024 · 6 comments
Labels
sample: react-content-query-online type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs

Comments

@maj-jacob
Copy link

Disclaimer

Yes

Sample

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

Contributor(s)

@PopWarner @PaoloPia @hugoabernier

What happened?

The web part does not work after put on page. It throws an "Something went wrong" error. Details only say [object Object]

image

Maybe relevant: the build throws a warning:

image

(it's not a CDN issue as in other report suggested)

Steps to reproduce

  1. Build webpart
  2. Add webpart to page

Expected behavior

a working webpart, without an error

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.19.0

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

Node.js v16 | v18

Paste the results of SPFx doctor

√ SharePoint Framework v1.18.2
√ Node v18.19.0
√ yo v5.0.0
√ gulp-cli v2.3.0
√ bundled typescript used
[
{
"check": "SharePoint Framework",
"passed": true,
"version": "1.18.2",
"message": "SharePoint Framework v1.18.2 valid."
},
{
"check": "SharePoint Framework",
"passed": true,
"version": "1.18.2",
"message": "SharePoint Framework v1.18.2"
},
{
"check": "Node",
"passed": true,
"message": "Node v18.19.0",
"version": "18.19.0"
},
{
"check": "yo",
"passed": true,
"message": "yo v5.0.0",
"version": "5.0.0"
},
{
"check": "gulp-cli",
"passed": true,
"message": "gulp-cli v2.3.0",
"version": "2.3.0"
},
{
"check": "typescript",
"passed": true,
"message": "bundled typescript used"
}
]

Additional environment details

No response

@maj-jacob maj-jacob added the type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs label Nov 21, 2024
@mauricework
Copy link

We are getting the same thing here as well. I have been trying for couple of weeks to figure out what I was doing wrong since I am new to this lol.

@aliiamar
Copy link

aliiamar commented Dec 9, 2024

We are getting the same thing here as well. I have been trying for couple of weeks to figure out what I was doing wrong since I am new to this lol.

@mauricework is the issue still persists in your environment? Do share any workarounds if you have :)

@mauricework
Copy link

@aliiamar nope it is still a problem.

@johndiehlwh
Copy link

Same issue here... did you find a solution yet?

@mauricework
Copy link

Same issue here... did you find a solution yet?

Sorry no I have not. I have not had a lot of time to look at it.

@raytri
Copy link

raytri commented Feb 11, 2025

I am having this exact problem as well. Would really appreciate an answer, as we are trying to replace an older version of the webpart for security reasons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sample: react-content-query-online 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

6 participants