Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: siblingVersion is not defined while installing the package #781

Open
leeyongeun9 opened this issue Nov 12, 2024 · 4 comments

Comments

@leeyongeun9
Copy link

Environment

node 20.9.0
yarn 1.22.17
vue 3.5.12
vite 5.4.10

Steps to Reproduce

  1. yarn add @sentry/capacitor @sentry/vue --exact
  2. error occured

Expected Result

package is installed

Actual Result

error /Users/iyong-eun/Desktop/works/ddtalk/codes/docktalk/node_modules/@sentry/capacitor: Command failed.
Exit code: 1
Command: node scripts/check-siblings.js
Arguments:
Directory: /Users/iyong-eun/Desktop/works/ddtalk/codes/docktalk/node_modules/@sentry/capacitor
Output:
/Users/iyong-eun/Desktop/works/ddtalk/codes/docktalk/node_modules/@sentry/capacitor/scripts/check-siblings.js:69
errorMessages.push("You must specify the version to the package " + installedVersion + ". ( " + installedVersion + "@" + siblingVersion + ")");
^

ReferenceError: siblingVersion is not defined
at ValidateSentryPackageParameters (/Users/iyong-eun/Desktop/works/ddtalk/codes/docktalk/node_modules/@sentry/capacitor/scripts/check-siblings.js:69:130)
at CheckSiblings (/Users/iyong-eun/Desktop/works/ddtalk/codes/docktalk/node_modules/@sentry/capacitor/scripts/check-siblings.js:128:7)
at Object. (/Users/iyong-eun/Desktop/works/ddtalk/codes/docktalk/node_modules/@sentry/capacitor/scripts/check-siblings.js:158:1)
at Module._compile (node:internal/modules/cjs/loader:1241:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47

I think the function ValidateSentryPackageParameters should be defined in the function CheckSiblings or the variable siblingVersion should be passed as an argument.

@lucas-zimerman
Copy link
Collaborator

lucas-zimerman commented Nov 12, 2024

Hi, could you try installing with this specific version?

yarn add @sentry/capacitor @sentry/[email protected] --exact

@lucas-zimerman lucas-zimerman moved this from Needs Discussion to Needs More Information in Mobile & Cross Platform SDK Nov 12, 2024
@leeyongeun9
Copy link
Author

Hi, could you try installing with this specific version?

yarn add @sentry/capacitor @sentry/[email protected] --exact

The same issue is occured with the command.

@leeyongeun9
Copy link
Author

The only way to avoid this error seems to be installing the @sentry/capacitor and @sentry/vue packages separately, one at a time. When I try to install both simultaneously, the error occurs regardless of the versions.

@lucas-zimerman
Copy link
Collaborator

I am sorry for your experience with the SDK.
We will investigate what could be happening with it.

@lucas-zimerman lucas-zimerman moved this from Needs More Information to Needs Investigation in Mobile & Cross Platform SDK Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Investigation
Development

No branches or pull requests

2 participants