Closed
Description
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
- browser version latest
- SPFx version 1.19.0
- Node.js version 18.20.2
Describe the bug / error
Everything else being equal, upgrading our current React projects from 1.18.2 to 1.19.0 causes us to get errors during webpack's build process. The issue is that it doesn't say what the errors are, just "[object Object]". Multiple error lines exist depending on the files included in the build. It is impossible to isolate what is exactly causing the issues, but I have a .ts file I know is causing at least one of the build failures (just reach out if you would like to see it).
Please note:
- Using the Yeoman generator for 1.19.0 and provisioning a React webpart, it builds fine. Adding more and more of our code eventually will cause the error as per above.
- We have upgraded correctly, ensuring to clear node_modules and even rebuilt the package.json file.
- Some projects have been alive since 1.16.0 and upgraded correctly with each release without issue.
Steps to reproduce
- Upgrade existing SPFx project to 1.19.0 or start from scratch;
- Something will eventually trigger this error and I'm not sure what because it doesn't say!
- Sadness
Expected behavior
I expect no errors in the build, just like there were no errors in previous SPFx versions.