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

Fix an issue with webpack error printing. #39

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

iclanton
Copy link
Member

Summary

Fixes SharePoint/sp-dev-docs#9834.

Details

Errors were assumed to still be strings in Webpack 5, which is no longer the case. This change normalizes them.

How it was tested

Created a bundling issue in SPFx 1.19 and confirmed that it's printed as expected.

Before:
image

After:
image

@iclanton iclanton force-pushed the fix-webpack-error-formatting branch from 8005d5e to ffcc86c Compare September 10, 2024 19:35
@iclanton iclanton force-pushed the fix-webpack-error-formatting branch from ffcc86c to 31d115a Compare September 10, 2024 19:45
@iclanton iclanton merged commit 1df6f05 into microsoft:main Sep 10, 2024
1 of 2 checks passed
@iclanton iclanton deleted the fix-webpack-error-formatting branch September 10, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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