EmbeddedChat icon indicating copy to clipboard operation
EmbeddedChat copied to clipboard

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

Open SinghaAnirban005 opened this issue 11 months ago • 3 comments

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

https://github.com/user-attachments/assets/0f07f7b9-15fb-48b6-8d47-2b02dcb4c4f3

SinghaAnirban005 avatar Apr 02 '25 15:04 SinghaAnirban005