Rajan / lesspod

Lesspod: Serverless CMS (Website + Blog Engine)
GNU General Public License v3.0
87 stars 19 forks source link

Menus shouldn't expect the user to be logged in (Firebase) #49

Closed Rajan closed 6 years ago

Rajan commented 6 years ago
[Vue warn]: Error in beforeMount hook: "TypeError: Cannot read property 'id' of undefined"

found in

---> <Navbar> at src/components/Navbar.vue
       <App> at src/App.vue
         <Root>
warn @ vue.esm.js?efeb:591
logError @ vue.esm.js?efeb:1737
globalHandleError @ vue.esm.js?efeb:1732
handleError @ vue.esm.js?efeb:1721
callHook @ vue.esm.js?efeb:2923
mountComponent @ vue.esm.js?efeb:2765
Vue.$mount @ vue.esm.js?efeb:8540
Vue.$mount @ vue.esm.js?efeb:10939
init @ vue.esm.js?efeb:4137
createComponent @ vue.esm.js?efeb:5608
createElm @ vue.esm.js?efeb:5555
createChildren @ vue.esm.js?efeb:5682
createElm @ vue.esm.js?efeb:5584
patch @ vue.esm.js?efeb:6091
Vue._update @ vue.esm.js?efeb:2660
updateComponent @ vue.esm.js?efeb:2788
get @ vue.esm.js?efeb:3142
Watcher @ vue.esm.js?efeb:3131
mountComponent @ vue.esm.js?efeb:2795
Vue.$mount @ vue.esm.js?efeb:8540
Vue.$mount @ vue.esm.js?efeb:10939
init @ vue.esm.js?efeb:4137
createComponent @ vue.esm.js?efeb:5608
createElm @ vue.esm.js?efeb:5555
patch @ vue.esm.js?efeb:6130
Vue._update @ vue.esm.js?efeb:2660
updateComponent @ vue.esm.js?efeb:2788
get @ vue.esm.js?efeb:3142
Watcher @ vue.esm.js?efeb:3131
mountComponent @ vue.esm.js?efeb:2795
Vue.$mount @ vue.esm.js?efeb:8540
Vue.$mount @ vue.esm.js?efeb:10939
Vue._init @ vue.esm.js?efeb:4640
Vue @ vue.esm.js?efeb:4729
(anonymous) @ main.js?1c90:101
(anonymous) @ main.js:127
./src/main.js @ app.js:4638
__webpack_require__ @ app.js:679
fn @ app.js:89
0 @ app.js:4655
__webpack_require__ @ app.js:679
(anonymous) @ app.js:725
(anonymous) @ app.js:728
vue.esm.js?efeb:1741 TypeError: Cannot read property 'id' of undefined
    at VueComponent.initNavbar (Navbar.vue?cd91:218)
    at VueComponent.beforeMount (Navbar.vue?cd91:165)
    at callHook (vue.esm.js?efeb:2921)
    at mountComponent (vue.esm.js?efeb:2765)
    at VueComponent.Vue.$mount (vue.esm.js?efeb:8540)
    at VueComponent.Vue.$mount (vue.esm.js?efeb:10939)
    at init (vue.esm.js?efeb:4137)
    at createComponent (vue.esm.js?efeb:5608)
    at createElm (vue.esm.js?efeb:5555)
    at createChildren (vue.esm.js?efeb:5682)

If there are menus, they should show up without user being logged in.