nuxt-community / express-template

Starter template for Nuxt 2 with Express.
https://codesandbox.io/s/github/nuxt-community/express-template
1.25k stars 239 forks source link

Layout returns blank with unclear <routerView> bug #180

Closed fadilnatakusumah closed 4 years ago

fadilnatakusumah commented 4 years ago

Hi, I don't if this is a bug or not.

I was developing using this template and it was okay in locally. but after I pushed to repo and clone it again, and try to run it locally, it resolve with blank page says

[Vue warn]: Unknown custom element: <routerView> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Nuxt>
       <Layouts/primaryLayout.vue> at layouts/primaryLayout.vue
         <Root>

it's like it comes from the <Nuxt /> element in layout file. when I comment that, it returns no errors.

this is my primaryLayout.vue

<template>
  <div>
    <AppHeader />
    <SearchFilter />
    <Nuxt />
  </div>
</template>

<style>
</style>

This only happens after I clone my repo. But when I copied the files from the original project it return no errors. I don't know why this is happening. It would be helpful if someone could help me. Thank you.

fadilnatakusumah commented 4 years ago

Nevermind. turns out there's package at-ui that downgrades the vue-router version that makes the error. took me all night to search it lol. I'll close this issue