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

SPFx 1.19.0 - Error during bundle says [object Object] instead of displaying a clear message #9834

Closed
1 of 9 tasks
Rafaelki opened this issue Jul 31, 2024 · 3 comments · Fixed by microsoft/spfx-gulp-tools#39
Labels
area:spfx Category: SharePoint Framework (not extensions related) area:spfx-build-tools Issues around SPFx build tools type:bug-confirmed Confirmed bug, not working as designed / expected.

Comments

@Rafaelki
Copy link

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

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

Additional environment details

  • SPFx version: 1.19
  • Node.js version: 18.20

Describe the bug / error

Related to #9675 as @AJIXuMuK asked to open a separated issue.

Errors during bundle say [object Object] as opposed to display the error message.
image

Note that the errors were displaying correctly in SPFx 1.18
image

Steps to reproduce

  1. Get SPFx 1.19 using yeoman
  2. Remove the assets folder to force an error during bundle
  3. Run gulp clean
  4. Run gulp bundle --ship
  5. Note the messages in the terminal

Expected behavior

The error messages should be as descriptive as possible.

@Rafaelki Rafaelki added the type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. label Jul 31, 2024
@VesaJuvonen VesaJuvonen added the Needs: Triage 🔍 Awaiting categorization and initial review. label Aug 1, 2024
@AJIXuMuK AJIXuMuK added area:spfx Category: SharePoint Framework (not extensions related) area:spfx-build-tools Issues around SPFx build tools type:bug-confirmed Confirmed bug, not working as designed / expected. and removed Needs: Triage 🔍 Awaiting categorization and initial review. type:bug-suspected Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs. labels Aug 6, 2024
@michaelmaillot
Copy link
Contributor

Hello,

FYI I tried to bundle a project with @microsoft/sp-build-web version 1.20.2 (released two days ago) and Webpack errors are now displayed correctly.

with @microsoft/[email protected]:

image

with @microsoft/[email protected]:

image

Can you confirm that it's ok on your side after updating the package version?

@Rafaelki
Copy link
Author

Thanks @michaelmaillot , I can confirm @microsoft/[email protected] is displaying errors

@AJIXuMuK
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:spfx Category: SharePoint Framework (not extensions related) area:spfx-build-tools Issues around SPFx build tools type:bug-confirmed Confirmed bug, not working as designed / expected.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants