Skip to content

Version Mismatch: @embeddedchat/api Not Recognized in Monorepo Workspace #1000

@SinghaAnirban005

Description

@SinghaAnirban005

Description:

There is a version mismatch between the @embeddedchat/api package in the monorepo and the published version on npm. The monorepo's package.json lists the version as 0.1.2, while the npm registry shows 0.1.3. This is causing issues when using yarn web in the react-native repo, as it fails to detect the local workspace package and instead tries to fetch it from npm.

Steps to reproduce:

  1. Run yarn web in the monorepo.
  2. Observe the error: Error: @embeddedchat/api@workspace:^: Workspace not found (@embeddedchat/api@workspace:^).
  3. Install the package from npm instead (0.1.3), and it works without issues.

Expected behavior:

yarn web should correctly resolve @embeddedchat/api from the monorepo workspace instead of looking for the npm version and start the react-native project

Actual behavior:

Yarn fails to find @embeddedchat/api@workspace:^ and throws an error.

Image

Image

From the above snaps we can observe that the version used in the current api package is deprecated

2025-04-02.23-40-55.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions