If you want to import in weixin miniprograme,please replace @mitojs/browser
to @miotjs/wx-mini
# using npm
npm i @mitojs/vue @mitojs/browser
# using yarn
yarn add @mitojs/vue @mitojs/browser
read the mito-doc to konw more info
// main.js
import Vue from 'vue'
import { init } from '@mitojs/browser'
import { vuePlugin } from '@mitojs/vue'
// multiple instances
const MitoInstance = init({
// set debug true to convenient debugger in dev,set false in prod
debug:true,
vue: Vue,
dsn: 'https://test.com/yourInterface',
maxBreadcrumbs: 100
},[vuePlugin])
// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import { init } from "@mitojs/browser";
import { vuePlugin } from "@mitojs/vue";
const app = createApp(App)
const MitoInstance = init({
// set debug true to convenient debugger in dev,set false in prod
debug:true,
vue: app,
dsn: 'https://test.com/yourInterface',
maxBreadcrumbs: 100
},[vuePlugin])