File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 24
24
"tslib" : " ^1.9.3"
25
25
},
26
26
"peerDependencies" : {
27
- "vue" : " 2.x"
27
+ "vue" : " 2.x || 3.x "
28
28
},
29
29
"devDependencies" : {
30
30
"@sentry-internal/eslint-config-sdk" : " 5.27.3" ,
Original file line number Diff line number Diff line change @@ -177,7 +177,6 @@ export class VueHelper {
177
177
*/
178
178
public constructor ( options : VueOptions ) {
179
179
this . _options = options ;
180
-
181
180
this . _attachErrorHandler ( ) ;
182
181
183
182
// TODO: Use other check to determine if tracing is enabled
@@ -341,9 +340,12 @@ export class VueHelper {
341
340
/** Inject configured tracing hooks into Vue's component lifecycles */
342
341
private _startTracing ( ) : void {
343
342
const applyTracingHooks = this . _applyTracingHooks ;
344
-
343
+ const appliedTracingHooks = setTimeout ( ( ) => {
344
+ logger . warn ( "Didn't apply tracing hooks, make sure you call Sentry.init before initialzing Vue!" ) ;
345
+ } , 500 ) ;
345
346
this . _options . Vue . mixin ( {
346
347
beforeCreate ( this : ViewModel ) : void {
348
+ clearTimeout ( appliedTracingHooks ) ;
347
349
applyTracingHooks ( this ) ;
348
350
} ,
349
351
} ) ;
You can’t perform that action at this time.
0 commit comments