Using vue-router 4.2.2 with Sentry.vueRouterInstrumentation
result in TypeError next is not a function
#8349
Closed
3 tasks done
Labels
Package: vue
Issues related to the Sentry Vue SDK
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/vue
SDK Version
7.55.2
Framework Version
Vue 3.3.4, Nuxt 3.5.3
Link to Sentry event
https://ebtex.sentry.io/issues/4252605919/?query=is%3Aignored&referrer=issue-stream&stream_index=3
SDK Setup
It's a nuxt plugin.
Steps to Reproduce
plugins
foldernpx nuxt generate
Expected Result
Nuxt cli can successfully generate SPA content.
Actual Result
However I see error as the following
Commenting out the line
routingInstrumentation: Sentry.vueRouterInstrumentation(vueRouter)
resolves this issue.I also check the source, the issue is in the
node_modules/@sentry/vue/cjs/router.js
there's a callback on beforeEach. In the last line of the callback,next
is called.However in vue-router 4, the
next
parameter has been removed frombeforeEach
callback hence the error thrown.Is it because vue-router4 not supported yet by @sentry/vue?
The text was updated successfully, but these errors were encountered: