Skip to content

fix: add missing peer dependencies for build - #5648

Open
swarupasaroogumma wants to merge 2 commits into
asyncapi:masterfrom
swarupasaroogumma:fix/missing-build-dependencies
Open

fix: add missing peer dependencies for build#5648
swarupasaroogumma wants to merge 2 commits into
asyncapi:masterfrom
swarupasaroogumma:fix/missing-build-dependencies

Conversation

@swarupasaroogumma

@swarupasaroogumma swarupasaroogumma commented Jul 23, 2026

Copy link
Copy Markdown

Description:
This PR Fixes module resolution errors that caused fresh installations and builds to fail due to missing dependencies.

Changes:

  • Added react-i18next, which is required by next-i18next but was not installed in the project dependencies.
  • Added @xyflow/react, which is required by @tisoap/react-flow-smart-edge (a dependency of schyma) for schema visualization.

Before (build failing )

xyflow_error react_i8next_error

After (fixed)
Succesful_build

Testing:

  • npm install
  • npm run dev
  • npm run build

Related issue(s):
N/A

Summary by CodeRabbit

  • New Features
    • Added support for interactive flow diagrams, enabling users to explore connected visual steps.
    • Added internationalization capabilities so the application can display localized content for different languages.

@netlify

netlify Bot commented Jul 23, 2026

Copy link
Copy Markdown

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 92d2297
🔍 Latest deploy log https://app.netlify.com/projects/asyncapi-website/deploys/6a6236c5cf867a00098419b0
😎 Deploy Preview https://deploy-preview-5648--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 29dd717c-3d2b-4580-a25c-0f2562c30177

📥 Commits

Reviewing files that changed from the base of the PR and between 42e7d71 and 92d2297.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • package.json

📝 Walkthrough

Walkthrough

Adds @xyflow/react and react-i18next as runtime dependencies in package.json.

Changes

Runtime dependencies

Layer / File(s) Summary
Add runtime dependencies
package.json
Adds @xyflow/react at ^12.11.2 and react-i18next at ^16.6.5 to the runtime dependencies.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related issues

  • asyncapi/website#4741 — Adds react-i18next, matching the issue’s peer-dependency context.

Suggested reviewers: derberg, akshatnema, anshgoyalevil

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main fix: adding missing dependencies to resolve build failures, though it loosely says peer dependencies.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
package.json (1)

66-66: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Pin the newly added dependency versions.

The lockfile currently resolves @xyflow/react to 12.11.2 and react-i18next to 17.0.11, but the caret ranges allow future minor updates during lockfile regeneration. Use exact versions here to keep fresh builds reproducible.

Proposed fix
-    "`@xyflow/react`": "^12.11.2",
+    "`@xyflow/react`": "12.11.2",
-    "react-i18next": "^17.0.11",
+    "react-i18next": "17.0.11",

Based on learnings, this repository prefers stable, well-tested dependency versions with exact pins or conservative ranges for reproducible builds.

Also applies to: 102-102

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` at line 66, Pin the newly added dependencies in package.json by
replacing the caret ranges for `@xyflow/react` and react-i18next with exact
versions matching the lockfile resolutions: 12.11.2 and 17.0.11.

Source: Learnings

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@package.json`:
- Line 66: Pin the newly added dependencies in package.json by replacing the
caret ranges for `@xyflow/react` and react-i18next with exact versions matching
the lockfile resolutions: 12.11.2 and 17.0.11.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 382629d6-c854-480a-affd-54a6a6dca984

📥 Commits

Reviewing files that changed from the base of the PR and between 4d18ff4 and 42e7d71.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json

@sonarqubecloud

Copy link
Copy Markdown

@asyncapi-bot

Copy link
Copy Markdown
Contributor

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 49
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-5648--asyncapi-website.netlify.app/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: To Be Triaged

Development

Successfully merging this pull request may close these issues.

2 participants