payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
23.12k stars 1.44k forks source link

Mismatching payload dependency versions found: payload@3.0.0-beta.68, @payloadcms/plugin-sentry@0.0.6 #7353

Closed italodr closed 1 week ago

italodr commented 1 month ago

Link to reproduction

https://github.com/payloadcms/payload/blob/main/.github/reproduction-guide.md

Payload Version

3.0.0-beta.68

Node Version

v20.12.2

Next.js Version

15.0.0-canary.53

Describe the Bug

I cannot use the reproduction-guide to reproduce an error —without, manually, changing the plugin version. Even though I'm not using this plugin on my code. The version of @payloadcms/plugin-sentry (0.0.6) is not updated to the new beta version (3.0.0-beta.68).

Reproduction Steps

Follow the steps below. Change your branch to beta

https://github.com/payloadcms/payload/blob/beta/.github/reproduction-guide.md

Adapters and Plugins

No response

tsemachh commented 1 month ago

I am not sure it passed Unit Test , this is the checked list: const resolvedDependencies = await getDependencies(dirname, [ '@payloadcms/ui/shared', 'payload', '@payloadcms/next/utilities', '@payloadcms/richtext-lexical', '@payloadcms/richtext-slate', '@payloadcms/graphql', '@payloadcms/plugin-cloud', '@payloadcms/db-mongodb', '@payloadcms/db-postgres', '@payloadcms/plugin-form-builder', '@payloadcms/plugin-nested-docs', '@payloadcms/plugin-seo', '@payloadcms/plugin-search', '@payloadcms/plugin-cloud-storage', '@payloadcms/plugin-stripe', '@payloadcms/plugin-zapier', '@payloadcms/plugin-redirects', '@payloadcms/plugin-sentry', '@payloadcms/bundler-webpack', '@payloadcms/bundler-vite', '@payloadcms/live-preview', '@payloadcms/live-preview-react', '@payloadcms/translations', '@payloadcms/email-nodemailer', '@payloadcms/email-resend', '@payloadcms/storage-azure', '@payloadcms/storage-s3', '@payloadcms/storage-gcs', '@payloadcms/storage-vercel-blob', '@payloadcms/storage-uploadthing', ]) You need to make sure that you have only packages with published beta versions

tsemachh commented 1 month ago

@jmikrut - As a temp workaround can you please just update: packages/plugin-stripe/package.json To have the version : "version": "3.0.0-beta.71", So we will have at least 1 version which can work with sentry

tsemachh commented 1 month ago

@jmikrut - sorry I see the plugin is not upgraded to use next.js it still works with express , will integrate directly using next.js integration they have there

paulpopus commented 1 week ago

Hi @tsemachh , this plugin will not be updated for v3 because Sentry has a direct to Nextjs integration https://docs.sentry.io/platforms/javascript/guides/nextjs/ that's now the recommended way to be setup.

github-actions[bot] commented 1 day ago

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.