File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/nuxt/src/runtime/plugins Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,15 @@ export default defineNuxtPlugin({
5151 if ( clientOptions && 'trackPinia' in clientOptions && clientOptions . trackPinia ) {
5252 if ( '$pinia' in nuxtApp ) {
5353 ( nuxtApp . $pinia as { use : ( plugin : unknown ) => void } ) . use (
54+ // `trackPinia` is an object with custom options or `true` (pass `undefined` to use default options)
5455 createSentryPiniaPlugin ( clientOptions . trackPinia === true ? undefined : clientOptions . trackPinia ) ,
5556 ) ;
5657 } else {
5758 clientOptions . debug &&
5859 consoleSandbox ( ( ) => {
5960 // eslint-disable-next-line no-console
6061 console . warn (
61- '[Sentry] You set `trackPinia`, but the Pinia was not found. Make sure to add `"@pinia/nuxt"` to your modules array.' ,
62+ '[Sentry] You set `trackPinia`, but the Pinia module was not found. Make sure to add `"@pinia/nuxt"` to your modules array.' ,
6263 ) ;
6364 } ) ;
6465 }
You can’t perform that action at this time.
0 commit comments