Skip to content

Conversation

@ZePan110
Copy link
Collaborator

@ZePan110 ZePan110 commented Oct 29, 2025

Description

Fix productivity-suite-react-ui-server build failure

Issues

List the issue or RFC link this PR is working on. If there is no such link, please mark it as n/a.

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

List the newly introduced 3rd party dependency if exists.

Tests

https://github.com/opea-project/GenAIExamples/actions/runs/18895081223/job/53930663132

Copilot AI review requested due to automatic review settings October 29, 2025 02:06
@github-actions
Copy link

Dependency Review

✅ No vulnerabilities or license issues found.

Scanned Files

None

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a build failure in the productivity-suite-react-ui-server by adding the --legacy-peer-deps flag to the npm install command in the Docker build process.

  • Modifies the npm install command to include the --legacy-peer-deps flag to resolve dependency conflicts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



RUN ["npm", "install"]
RUN ["npm", "install", "--legacy-peer-deps"]
Copy link

Copilot AI Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using --legacy-peer-deps is a temporary workaround that bypasses npm's stricter peer dependency resolution. Consider updating the package.json dependencies to resolve conflicts properly or documenting why this flag is necessary for long-term maintainability.

Suggested change
RUN ["npm", "install", "--legacy-peer-deps"]
RUN ["npm", "install"]

Copilot uses AI. Check for mistakes.
@ZePan110 ZePan110 closed this Oct 29, 2025
@ZePan110 ZePan110 deleted the ze-fix/build branch October 29, 2025 06:16
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.

2 participants