-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Description
Version
2.5.15
Steps to reproduce
I am importing in App.vue a component named Profile.vue.In Profile.vue also i import another component named ChangePassword.vue.Everything it works and worked fine.
But now i dont want anymore to import ChangaPassword in Profile.vue component.But when i delete the import,delete the component registration and delete the html tag of ChangePassword component i got a strange error.
What is expected?
Expected this change to do not affect something in application and also to dont get error.
What is actually happening?
But i got the follow error.
Error in render: "TypeError: Cannot read property 'components' of undefined"
found in
---> at src\App.vue
vue.esm.js?efeb:1717 TypeError: Cannot read property 'components' of undefined
at checkComponents (vue.esm.js?efeb:1315)
at mergeOptions (vue.esm.js?efeb:1436)
at mergeOptions (vue.esm.js?efeb:1452)
at Function.Vue.extend (vue.esm.js?efeb:4733)
at createComponent (vue.esm.js?efeb:4135)
at _createElement (vue.esm.js?efeb:4363)
at createElement (vue.esm.js?efeb:4300)
at vm._c (vue.esm.js?efeb:4416)
at Proxy.render (eval at ./node_modules/vue-loader/lib/template-compiler/index.js?{"id":"data-v-04c2046b","hasScoped":false,"transformToRequire":{"video":["src","poster"],"source":"src","img":"src","image":"xlink:href"},"buble":{"transforms":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/App.vue (app.js:1923), :50:27)
at VueComponent.Vue._render (vue.esm.js?efeb:4474)
I think that i miss something but since i delete the import in Profile.vue and delete the components: {} section and also the html tag related to ChangePassword.vue everything should work fine.Idk why it isnt