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

Installing Prior Versions of @sentry/sveltekit Errors on Dependency to Latest Version #8568

Closed
3 tasks done
mstachowiak opened this issue Jul 17, 2023 · 12 comments
Closed
3 tasks done

Comments

@mstachowiak
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/sveltekit

SDK Version

7.58.1

Framework Version

1.20.4

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

In a fresh project, try to install @sentry/[email protected]

$ npm install @sentry/[email protected]

Expected Result

I would expect @sentry/[email protected] to be installed, without any dependencies on v7.59.0 libraries.

No amount of forcing dependencies to 7.58.1 worked. No matter what you do, npm will attempt to install a v7.59.0 dependency.

Actual Result

npm ERR! code ETARGET
npm ERR! notarget No matching version found for @sentry-internal/[email protected].
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

@frankleng
Copy link

this is happening when installing latest of @sentry/profiling-node as well

@chuma9615
Copy link

I'm having the same issue, our GitHub Actions builds are failing because of this. Any clue?

@ariesclark
Copy link

ariesclark commented Jul 17, 2023

Reverting fails as well, this prevents us from building at all.
This is a high priority issue until a workaround is found.

pnpm i
 ERR_PNPM_NO_MATCHING_VERSION  No matching version found for @sentry/[email protected]

This error happened while installing the dependencies of @sentry/[email protected]
 at @sentry/[email protected]

The latest release of @sentry/core is "7.58.1".

Other releases are:
  * next: 7.59.0-beta.1

If you need the full list of all 374 published versions run "$ pnpm view @sentry/core versions".
Progress: resolved 244, reused 229, downloaded 0, added 0

@armandofcom
Copy link

Could you fix this please, you have many projects failing with the install because it tries to look for version 7.59.0

@sy-bbong
Copy link

Modifying the package.json file can help avoid errors.

from
"dependencies": {
....
"@sentry/node": "^7.x.x",
"@sentry/tracing": "^7.x.x",
...
}

to
"dependencies": {
....
"@sentry/node": "~7.58.0",
"@sentry/tracing": "~7.58.0",
...
}

@charleskoehl
Copy link

charleskoehl commented Jul 18, 2023

Getting same errors for @sentry/nextjs when running vercel build, although I can build it locally.

[13:39:30.013] Running build in San Francisco, USA (West) – sfo1
[13:39:30.077] Cloning github.com/InstantRoofer/instant-roofer-nx-monorepo (Branch: staging, Commit: 98f2510)
[13:39:30.083] VERCEL_FORCE_NO_BUILD_CACHE is set so skipping build cache step
[13:39:31.221] Cloning completed: 1.144s
[13:39:31.221] Running "npx nx-ignore dashboard"
[13:39:31.975] npm WARN exec The following package was not found and will be installed: [email protected]
[13:39:32.399] ≫ Using Nx to determine if this project (dashboard) is affected by the commit...
[13:39:36.454] npm WARN using --force Recommended protections disabled.
[13:39:36.460] fatal: bad object 0a0f02ba1ae9d392eaf0e0e39aab84648a8a122b
[13:39:38.462] >  NX  Use `nx graph --affected`, or `nx affected --graph` instead depending on which best suits your use case. The `affected:graph` command will be removed in Nx 18.
[13:39:38.561] ✅ - Build can proceed since dashboard is affected
[13:39:38.848] Running "vercel build"
[13:39:39.360] Vercel CLI 31.0.3
[13:39:39.724] Installing dependencies...
[13:39:40.029] yarn install v1.22.17
[13:39:40.106] [1/4] Resolving packages...
[13:39:46.935] error Couldn't find any versions for "@sentry/core" that matches "7.59.1"
[13:39:46.936] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[13:39:47.147] Error: Couldn't find any versions for "@sentry/types" that matches "7.59.1"
[13:39:47.148]     at MessageError.ExtendableBuiltin (/vercel/.yarn/lib/cli.js:721:66)
[13:39:47.148]     at new MessageError (/vercel/.yarn/lib/cli.js:750:123)
[13:39:47.148]     at Function.<anonymous> (/vercel/.yarn/lib/cli.js:50724:13)
[13:39:47.148]     at Generator.next (<anonymous>)
[13:39:47.148]     at step (/vercel/.yarn/lib/cli.js:310:30)
[13:39:47.148]     at /vercel/.yarn/lib/cli.js:321:13
[13:39:47.148]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[13:39:47.148] Error: Couldn't find any versions for "@sentry/utils" that matches "7.59.1"
[13:39:47.148]     at MessageError.ExtendableBuiltin (/vercel/.yarn/lib/cli.js:721:66)
[13:39:47.148]     at new MessageError (/vercel/.yarn/lib/cli.js:750:123)
[13:39:47.149]     at Function.<anonymous> (/vercel/.yarn/lib/cli.js:50724:13)
[13:39:47.149]     at Generator.next (<anonymous>)
[13:39:47.149]     at step (/vercel/.yarn/lib/cli.js:310:30)
[13:39:47.149]     at /vercel/.yarn/lib/cli.js:321:13
[13:39:47.149]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[13:39:47.171] Error: Command "yarn install" exited with 1

package.json:

{
  "name": "---------------------",
  "license": "MIT",
  "private": true,
  "dependencies": {
    "@benestudioco/react-scrollfade": "1.0.2",
    "@emotion/cache": "11.11.0",
    "@emotion/react": "11.11.1",
    "@emotion/server": "11.11.0",
    "@emotion/styled": "11.11.0",
    "@googlemaps/google-maps-services-js": "3.3.33",
    "@hookform/resolvers": "2.9.11",
    "@mapbox/tilebelt": "1.0.2",
    "@mapbox/vector-tile": "1.3.1",
    "@mui/material": "5.14.0",
    "@mui/x-data-grid-pro": "5.17.26",
    "@sendgrid/eventwebhook": "7.7.0",
    "@sendgrid/mail": "7.7.0",
    "@sentry/nextjs": "7.58.1",
    "@sentry/profiling-node": "^1.1.2",
    "@stripe/react-stripe-js": "1.16.5",
    "@stripe/stripe-js": "1.54.1",
    "@tanstack/react-query": "4.29.23",
    "@turf/turf": "6.5.0",
    "async": "3.2.4",
    "axios": "1.4.0",
    "body-parser": "1.20.2",
    "chalk": "4.1.2",
    "copy-to-clipboard": "3.3.3",
    "deep-extend": "0.6.0",
    "dotenv": "16.3.1",
    "express": "4.18.2",
    "express-async-handler": "1.2.0",
    "express-bearer-token": "2.4.0",
    "got": "11.8.6",
    "helmet": "6.2.0",
    "html-entities": "2.4.0",
    "humanize-duration": "3.29.0",
    "inflected": "2.1.0",
    "intercept-stdout": "0.1.2",
    "iron-session": "6.3.1",
    "jaro-winkler-typescript": "1.0.1",
    "jimp": "0.22.8",
    "joi": "17.9.2",
    "ky": "0.33.3",
    "leaflet": "1.9.4",
    "leaflet-defaulticon-compatibility": "0.1.1",
    "libphonenumber-js": "1.10.37",
    "loglevel": "1.8.1",
    "loglevel-plugin-prefix": "0.8.4",
    "luxon": "3.3.0",
    "mui-color-input": "1.1.0",
    "mustache": "4.2.0",
    "neo4j-driver": "5.10.0",
    "next": "13.4.9",
    "next-connect": "0.13.0",
    "node-random-name": "1.0.1",
    "notistack": "2.0.8",
    "numeral": "2.0.6",
    "openai": "3.3.0",
    "p-all": "4.0.0",
    "p-each-series": "3.0.0",
    "p-map": "5.5.0",
    "p-props": "5.0.0",
    "pbf": "3.2.1",
    "pg": "8.11.1",
    "punycode": "2.3.0",
    "radash": "10.9.0",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-google-autocomplete": "2.7.3",
    "react-hook-form": "7.45.1",
    "react-icons": "4.10.1",
    "react-json-view": "1.21.3",
    "react-leaflet": "4.2.1",
    "react-leaflet-google-layer": "2.2.0",
    "react-markdown": "8.0.7",
    "react-phone-number-input": "3.3.0",
    "react-quill": "2.0.0",
    "react-syntax-highlighter": "15.5.0",
    "react-textfit": "1.1.1",
    "recoil": "0.7.7",
    "request-ip": "3.3.0",
    "set-value": "4.1.0",
    "simple-oauth2": "5.0.0",
    "statman-stopwatch": "2.13.0",
    "stringify-object": "5.0.0",
    "stripe": "11.18.0",
    "tinycolor2": "1.6.0",
    "tslib": "2.6.0",
    "twilio": "4.14.0",
    "use-debounce": "9.0.4",
    "use-local-storage-state": "18.3.3",
    "wkx": "0.5.0"
  },
  "devDependencies": {
    "@babel/preset-env": "~7.22.9",
    "@babel/preset-react": "~7.22.5",
    "@emotion/babel-plugin": "11.11.0",
    "@hookform/devtools": "~4.3.1",
    "@nx/cypress": "16.5.2",
    "@nx/devkit": "16.5.2",
    "@nx/eslint-plugin": "16.5.2",
    "@nx/express": "16.5.2",
    "@nx/jest": "16.5.2",
    "@nx/js": "16.5.2",
    "@nx/linter": "16.5.2",
    "@nx/next": "16.5.2",
    "@nx/node": "16.5.2",
    "@nx/react": "16.5.2",
    "@nx/web": "16.5.2",
    "@nx/webpack": "16.5.2",
    "@nx/workspace": "16.5.2",
    "@testing-library/react": "~14.0.0",
    "@types/async": "~3.2.20",
    "@types/clone-deep": "~4.0.1",
    "@types/deep-extend": "~0.6.0",
    "@types/dot-object": "~2.1.2",
    "@types/express": "4.17.17",
    "@types/google.maps": "~3.53.4",
    "@types/gtag.js": "~0.0.12",
    "@types/humanize-duration": "~3.27.1",
    "@types/inflected": "~2.1.0",
    "@types/jest": "29.5.3",
    "@types/luxon": "~3.3.0",
    "@types/mustache": "~4.2.2",
    "@types/node": "20.4.2",
    "@types/numeral": "~2.0.2",
    "@types/pg": "~8.10.2",
    "@types/react": "18.2.15",
    "@types/react-dom": "18.2.7",
    "@types/react-syntax-highlighter": "~15.5.7",
    "@types/set-value": "~4.0.1",
    "@types/tinycolor2": "~1.4.3",
    "@types/uuid": "~9.0.2",
    "@typescript-eslint/eslint-plugin": "5.62.0",
    "@typescript-eslint/parser": "5.62.0",
    "babel-jest": "29.6.1",
    "cypress": "12.17.0",
    "dotenv-webpack": "^8.0.1",
    "eslint": "~8.44.0",
    "eslint-config-next": "~13.4.10",
    "eslint-config-prettier": "~8.8.0",
    "eslint-plugin-cypress": "~2.13.3",
    "eslint-plugin-import": "~2.27.5",
    "eslint-plugin-jsx-a11y": "~6.7.1",
    "eslint-plugin-react": "~7.32.2",
    "eslint-plugin-react-hooks": "~4.6.0",
    "jest": "29.6.1",
    "jest-environment-jsdom": "29.6.1",
    "jest-environment-node": "~29.6.1",
    "nx": "16.5.2",
    "nx-cloud": "16.1.0",
    "nx-ignore": "~15.0.2",
    "prettier": "~2.6.2",
    "ts-jest": "29.1.1",
    "ts-node": "~10.9.1",
    "typescript": "5.1.6",
    "wp-types": "~3.62.4"
  },
  "packageManager": "[email protected]"
}

@Lms24
Copy link
Member

Lms24 commented Jul 18, 2023

Hi everyone,

it seems there has been a publishing problem with 7.59.0 and 7.59.1. Due to this problem some packages have been released, others not, leading to this problem. We are very sorry about the inconvenience and are working to fix this ASAP! For now, please pin your dependencies to ~7.58.1 to avoid this problem until we have fixed 7.59.x! We'll keep you posted here.

@charleskoehl
Copy link

Thank you for getting on it so quickly, but pinning to ~7.58.1 did not help with my nextjs build (see #8568 (comment))

@Lms24
Copy link
Member

Lms24 commented Jul 18, 2023

@charleskoehl
This publish incident unfortunately involves all our SDKs.

For NextJS there's additional breakage with the latest next release 13.4.10. If you pin next to 13.4.9 you should be good. See #8541

@charleskoehl
Copy link

Thanks @Lms24 I was already pinned to 13.4.9.

@mydea
Copy link
Member

mydea commented Jul 18, 2023

You may be able to pin your transitive dependencies, for example with yarn you can do:

{
   "resolutions": {
    "**/@sentry/core": "~7.58.1"
  }
}

in your package.json to force transitive dependencies!

But we have already resolved the underlying problem of our publishing system and are working on releasing 7.59.2 which should hopefully be out very soon!

@mydea
Copy link
Member

mydea commented Jul 18, 2023

Hello, we have just released 7.59.2, which should work again as expected! We're very sorry about the inconvenience, we are taking steps to ensure we avoid such publish issues in the future. This should fix this specific issue at least. We'll continue to look into the other problems mentioned!

@Lms24 Lms24 closed this as completed Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

9 participants