Skip to content

Commit c7cdade

Browse files
committed
fix: changed require to import
1 parent a69e002 commit c7cdade

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ Vue.component('aw-custom-vis', () => import('./visualizations/CustomVisualizatio
6262
Vue.component('aw-score', () => import('./visualizations/Score.vue'));
6363

6464
// A mixin to make async method errors propagate
65-
Vue.mixin(require('~/mixins/asyncErrorCaptured.js'));
65+
import asyncErrorCapturedMixin from './mixins/asyncErrorCaptured.js';
66+
Vue.mixin(asyncErrorCapturedMixin);
6667

6768
// Set the PRODUCTION constant
6869
// FIXME: Thould follow Vue convention and start with a $.

0 commit comments

Comments
 (0)