Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/nuxt
SDK Version
10.40.0
Framework Version
4.3.1
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
Upgrade to Vue-router 5.0.0 in your nuxt project
Expected Result
No console warning
Actual Result
http://localhost:3000/_nuxt/@fs/Users/sleblanc/www/project_name/nuxt4/node_modules/.pnpm/@sentry+vue@10.40.0_pinia@3.0.4_typescript@5.9.3_vue@3.5.29_typescript@5.9.3___vue@3.5.29_typescript@5.9.3_/node_modules/@sentry/vue/src/router.ts
[Vue Router warn]: The next() callback in navigation guards is deprecated. Return the value instead of calling next(value).
Additional Context
|
// Vue Router 4 no longer exposes the `next` function, so we need to |
|
// check if it's available before calling it. |
|
// `next` needs to be called in Vue Router 3 so that the hook is resolved. |
|
if (next) { |
|
next(); |
|
} |
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Which SDK are you using?
@sentry/nuxt
SDK Version
10.40.0
Framework Version
4.3.1
Link to Sentry event
No response
Reproduction Example/SDK Setup
No response
Steps to Reproduce
Upgrade to Vue-router 5.0.0 in your nuxt project
Expected Result
No console warning
Actual Result
http://localhost:3000/_nuxt/@fs/Users/sleblanc/www/project_name/nuxt4/node_modules/.pnpm/@sentry+vue@10.40.0_pinia@3.0.4_typescript@5.9.3_vue@3.5.29_typescript@5.9.3___vue@3.5.29_typescript@5.9.3_/node_modules/@sentry/vue/src/router.ts
Additional Context
sentry-javascript/packages/vue/src/router.ts
Lines 119 to 124 in 89b437f
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it.