question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unknown custom element router-view

See original GitHub issue

I have Vuera loaded in the same file as my vue router but when I mount vuera it affects vue-router. Here’s my router file:

import Vue from 'vue'
import Router from 'vue-router'
import { VuePlugin } from 'vuera'
import Home from '@/components/Home'

Vue.use(VuePlugin)
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    }
  ]
})

when I take out the 3rd and 6th line with Vuera/VuePlugin, the app works again. Here’s the error I get:

Unknown custom element: <router-view>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
josephrexmecommented, Nov 2, 2017
1reaction
akxcvcommented, Nov 2, 2017

I did some investigation and found out that there’s some bug in my Vue plugin that breaks globally registered Vue components. Will fix ASAP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Vue warn]: Unknown custom element: <router-view> - did you ...
unfortunately starting a file gives me an error: [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive ...
Read more >
Unknown custom element: <router-view> · Issue #845 - GitHub
I've migrated a project to vue 2, veux 2 and vue-router 2. I read the docs before and also the migration guide, but...
Read more >
[Vue warn]: Unknown custom element: <router-view> - Laracasts
Any idea why i'm getting this error?: admin.js:4555 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components ......
Read more >
[Vue warn]: Unknown custom element: <route-view> - did you ...
I have a problem with vue-router. And I have no answer after search in goolge and here.
Read more >
Unknown custom element: <router-link> — did you register the ...
This post is about the errors I encountered while working with vue-router and routers in Laravel using Vue and Vuetify. This can also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found