Skip to content

SPFx 1.19.0 - Error during build with [object Object] errors that didn't happen in previous versions #9675

Closed
@tandrasi

Description

@tandrasi

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

image

Please note:

  1. 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.
  2. We have upgraded correctly, ensuring to clear node_modules and even rebuilt the package.json file.
  3. Some projects have been alive since 1.16.0 and upgraded correctly with each release without issue.

Steps to reproduce

  1. Upgrade existing SPFx project to 1.19.0 or start from scratch;
  2. Something will eventually trigger this error and I'm not sure what because it doesn't say!
  3. Sadness

Expected behavior

I expect no errors in the build, just like there were no errors in previous SPFx versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:spfxCategory: SharePoint Framework (not extensions related)status:by-designTopic described is by design & not considered an issue.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions