-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
BugPackage: sveltekitIssues related to the Sentry SvelteKit SDKIssues related to the Sentry SvelteKit SDK
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/sveltekit
SDK Version
7.93.0
Framework Version
2.0.0
Link to Sentry event
No response
SDK Setup
Using a fresh install of a Sveltekit project, one can not install the sentry sdk.
This are the current dependencies with a clean project:
"devDependencies": {
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/eslint": "8.56.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.35.1",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^5.0.3",
"vitest": "^1.2.0"
}
Steps to Reproduce
Start with a fresh directory
npm init vite
- Select
- Svelte
- SvelteKit
- Skeleton Project
- Yes, using Typescript syntax
- Pick everything except
Try the Svelte 5 preview
- Wait for the project to be created
- Run
npm install --save @sentry/sveltekit
Expected Result
Correct installation
Actual Result
# npm resolution error report
While resolving: client@0.0.1
Found: @sveltejs/kit@1.30.3
node_modules/@sveltejs/kit
peer @sveltejs/kit@"^1.0.0" from @sveltejs/adapter-node@1.2.4
node_modules/@sveltejs/adapter-node
dev @sveltejs/adapter-node@"^1.2.4" from the root project
dev @sveltejs/kit@"^2.0.0" from the root project
peer @sveltejs/kit@"1.x || 2.x" from @sentry/sveltekit@7.93.0
node_modules/@sentry/sveltekit
@sentry/sveltekit@"^7.93.0" from the root project
Could not resolve dependency:
dev @sveltejs/kit@"^2.0.0" from the root project
Conflicting peer dependency: @sveltejs/vite-plugin-svelte@3.0.1
node_modules/@sveltejs/vite-plugin-svelte
peer @sveltejs/vite-plugin-svelte@"^3.0.0" from @sveltejs/kit@2.3.5
node_modules/@sveltejs/kit
dev @sveltejs/kit@"^2.0.0" from the root project
Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
Metadata
Metadata
Assignees
Labels
BugPackage: sveltekitIssues related to the Sentry SvelteKit SDKIssues related to the Sentry SvelteKit SDK
Projects
Status
Waiting for: Community