Skip to content

Commit 486f94a

Browse files
authored
fix(vue): Attach props only if VM is available (#3902)
1 parent 19ef32c commit 486f94a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue/src/errorhandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const attachErrorHandler = (app: Vue, options: Options): void => {
1515
trace,
1616
};
1717

18-
if (options.attachProps) {
18+
if (vm && options.attachProps) {
1919
// Vue2 - $options.propsData
2020
// Vue3 - $props
2121
metadata.propsData = vm.$options.propsData || vm.$props;

0 commit comments

Comments
 (0)