{"action":"opened","issue":{"url":"https://api.github.com/repos/vuejs/vue-test-utils/issues/817","repository_url":"https://api.github.com/repos/vuejs/vue-test-utils","labels_url":"https://api.github.com/repos/vuejs/vue-test-utils/issues/817/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue-test-utils/issues/817/comments","events_url":"https://api.github.com/repos/vuejs/vue-test-utils/issues/817/events","html_url":"https://github.com/vuejs/vue-test-utils/issues/817","id":340250259,"node_id":"MDU6SXNzdWUzNDAyNTAyNTk=","number":817,"title":"I am not able to remove this error (   [Vue warn]: Failed to mount component: template or render function not defined. )?","user":{"login":"awesomehimanshu","id":16804408,"node_id":"MDQ6VXNlcjE2ODA0NDA4","avatar_url":"https://avatars0.githubusercontent.com/u/16804408?v=4","gravatar_id":"","url":"https://api.github.com/users/awesomehimanshu","html_url":"https://github.com/awesomehimanshu","followers_url":"https://api.github.com/users/awesomehimanshu/followers","following_url":"https://api.github.com/users/awesomehimanshu/following{/other_user}","gists_url":"https://api.github.com/users/awesomehimanshu/gists{/gist_id}","starred_url":"https://api.github.com/users/awesomehimanshu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesomehimanshu/subscriptions","organizations_url":"https://api.github.com/users/awesomehimanshu/orgs","repos_url":"https://api.github.com/users/awesomehimanshu/repos","events_url":"https://api.github.com/users/awesomehimanshu/events{/privacy}","received_events_url":"https://api.github.com/users/awesomehimanshu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-11T13:48:25Z","updated_at":"2018-07-11T13:48:25Z","closed_at":null,"author_association":"NONE","body":"The code i use is this .\r\n\r\ncode i use something like this. what is wrong with it can you tell me . It gives me warning .\r\n\r\n```\r\nimport Vue from \"vue\";\r\nimport Vuex from \"vuex\";\r\nimport Router from \"vue-router\";\r\nimport BootstrapVue from \"bootstrap-vue\";\r\nimport Loading from \"vue-loading-overlay\";\r\nimport X2JS from \"x2js\";\r\n\r\nconst x2js = new X2JS();\r\nimport {  getResponseJSON } from \"../src/util/utility\";\r\n\r\nimport {\r\n    serviceURL\r\n} from \"../src/util/config\";\r\n\r\nimport {\r\n    shallowMount,\r\n    mount,\r\n    createLocalVue\r\n} from '@vue/test-utils'\r\nVue.use(BootstrapVue);\r\nimport axios from 'axios'\r\n\r\njest.mock('axios', () => ({\r\n    post: jest.fn(() => Promise.resolve({\r\n        data: [3]\r\n    }))\r\n}))\r\n// add the 2 lines below\r\n// const localVue = createLocalVue();\r\n// localVue.use(Vuex);\r\nVue.use(Vuex);\r\nVue.use(Router);\r\nVue.use(Loading);\r\nimport AddEditPerson from \"../src/components/AddEditPerson/AddEditPerson.vue\";\r\nconst localVue = createLocalVue();\r\nlocalVue.use(Vuex);\r\ndescribe(\"AddPerson.test.js\", () => {\r\n    let cmp, store, actions, router;\r\n    beforeEach(() => {\r\n        cmp = Vue.extend(AddEditPerson);\r\n        store = new Vuex.Store({\r\n            state: {},\r\n            actions\r\n        });\r\n        router = new Router({\r\n            routes: []\r\n        });\r\n    });\r\n it(\"Clicking on membership will active that tab\", () => {\r\n        let check = false;\r\n        let wrapper = shallowMount(AddEditPerson, {\r\n            localVue,\r\n            store,\r\n            router\r\n        });\r\n        if(wrapper.vm.memberships.length > 0){\r\n            check = true;\r\n        }\r\n        expect(check).toEqual(true);\r\n    });\r\n\r\n    it('has the expected html structure', () => {\r\n        let wrapper = mount(AddEditPerson, {\r\n            localVue,\r\n            store,\r\n            router\r\n        });\r\n        expect(wrapper.vm.$el).toMatchSnapshot();\r\n    });\r\n});\r\n```\r\n\r\nError on console .  \r\n\r\n\r\nconsole.error node_modules/vue/dist/vue.common.js:593\r\n      [Vue warn]: Failed to mount component: template or render function not defined.\r\n\r\n      found in\r\n\r\n      ---> <Taxonomy>\r\n             <BTab>\r\n               <BTabs>\r\n                 <AddEditPerson>\r\n                   <Root>\r\n    console.error node_modules/vue/dist/vue.common.js:593\r\n      [Vue warn]: Failed to mount component: template or render function not defined.\r\n\r\n      found in\r\n\r\n      ---> <Taxonomy>\r\n             <BTab>\r\n               <BTabs>\r\n                 <AddEditPerson>\r\n                   <Root>\r\n    console.error node_modules/vue/dist/vue.common.js:593\r\n      [Vue warn]: Failed to mount component: template or render function not defined.\r\n\r\n      found in\r\n\r\n      ---> <Taxonomy>\r\n             <BTab>\r\n               <BTabs>\r\n                 <AddEditPerson>\r\n                   <Root>\r\n    console.log test/addEditPerson.test.js:98\r\n      [Function: mount]\r\n    console.error node_modules/vue/dist/vue.common.js:593\r\n      [Vue warn]: Failed to mount component: template or render function not defined.\r\n\r\n      found in\r\n\r\n      ---> <Taxonomy>\r\n             <BTab>\r\n               <BTabs>\r\n                 <AddEditPerson>\r\n                   <Root>\r\n    console.log test/addEditPerson.test.js:111\r\n      Wrapper { version: 2.5 }\r\n    console.error node_modules/vue/dist/vue.common.js:593\r\n      [Vue warn]: Failed to mount component: template or render function not defined.\r\n\r\n      found in\r\n\r\n      ---> <Taxonomy>\r\n             <BTab>\r\n               <BTabs>\r\n                 <AddEditPerson>\r\n                   <Root>\r\n    console.error node_modules/vue/dist/vue.common.js:593\r\n      [Vue warn]: Failed to mount component: template or render function not defined.\r\n\r\n      found in\r\n\r\n      ---> <Taxonomy>\r\n             <BTab>\r\n               <BTabs>\r\n                 <AddEditPerson>\r\n                   <Root>\r\n    console.error node_modules/vue/dist/vue.common.js:593\r\n      [Vue warn]: Failed to mount component: template or render function not defined.\r\n\r\n      found in\r\n\r\n      ---> <Taxonomy>\r\n             <BTab>\r\n               <BTabs>\r\n                 <AddEditPerson>\r\n                   <Root>\r\n    console.error node_modules/vue/dist/vue.common.js:593\r\n      [Vue warn]: Error in event handler for \"input\": \"TypeError: Cannot read property '_transitionClasses' of undefined\"\r\n\r\n      found in\r\n\r\n      ---> <BFormInput>\r\n             <Autocomplete>\r\n               <BTab>\r\n                 <BTabs>\r\n                   <AddEditPerson>\r\n                     <Root>\r\n    console.error node_modules/vue/dist/vue.common.js:1743\r\n      TypeError: Cannot read property '_transitionClasses' of undefined\r\n          at Array.updateClass (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:6430:28)\r\n          at patchVnode (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:5933:62)\r\n          at updateChildren (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:5824:9)\r\n          at patchVnode (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:5938:29)\r\n          at updateChildren (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:5824:9)\r\n          at patchVnode (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:5938:29)\r\n          at VueComponent.patch [as __patch__] (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:6098:9)\r\n          at VueComponent.Vue._update (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:2672:19)\r\n          at VueComponent.vm._update (c:\\someapp\\node_modules\\@vue\\test-utils\\dist\\vue-test-utils.js:4326:12)\r\n          at VueComponent.updateComponent (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:2790:10)\r\n          at Watcher.get (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:3144:25)\r\n          at Watcher.run (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:3221:22)\r\n          at Watcher.update (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:3209:10)\r\n          at Dep.notify (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:699:13)\r\n          at Object.reactiveSetter [as showValue] (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:1016:11)\r\n          at Proxy.proxySetter (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:3302:26)\r\n          at callback (c:\\someapp\\src\\components\\autocomplete\\autocomplete.vue:193:582)\r\n          at VueComponent.invoker (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:2029:18)\r\n          at VueComponent.Vue.$emit (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:2540:18)\r\n          at VueComponent.setValue (c:\\someapp\\node_modules\\bootstrap-vue\\src\\components\\form-input\\form-input.js:140:12)\r\n          at VueComponent.value (c:\\someapp\\node_modules\\bootstrap-vue\\src\\components\\form-input\\form-input.js:128:14)\r\n          at Watcher.run (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:3235:19)\r\n          at Watcher.update (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:3209:10)\r\n          at Dep.notify (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:699:13)\r\n          at Object.reactiveSetter [as value] (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:1016:11)\r\n          at updateChildComponent (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:2851:18)\r\n          at prepatch (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:4146:5)\r\n          at patchVnode (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:5927:7)\r\n          at updateChildren (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:5824:9)\r\n          at patchVnode (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:5938:29)\r\n          at VueComponent.patch [as __patch__] (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:6098:9)\r\n          at VueComponent.Vue._update (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:2672:19)\r\n          at VueComponent.vm._update (c:\\someapp\\node_modules\\@vue\\test-utils\\dist\\vue-test-utils.js:4326:12)\r\n          at VueComponent.updateComponent (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:2790:10)\r\n          at Watcher.get (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:3144:25)\r\n          at Watcher.run (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:3221:22)\r\n          at Watcher.update (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:3209:10)\r\n          at Dep.notify (c:\\someapp\\node_modules\\vue\\dist\\vue.common.js:699:13)\r\n          at Object.reactiveSetter [as showValue] (c:\\someapp\\node_modules\\vue\\dist\\vu"}}
{"actor":{"display_login":"awesomehimanshu"}}