Obscure error says my component name begins with a zero Obscure error says my component name begins with a zero vue.js vue.js

Obscure error says my component name begins with a zero


I had the same error and it was caused by use of array instead of object in the components.This is how it should looks like

components: {  RecentPostsWidget,  PagesWidget}

This is how I had it when the error appeared:

components: [  RecentPostsWidget,  PagesWidget]


Try replacing

components: {    RecentPostsWidget,    PagesWidget}

with

components: {    recentPostsWidget: RecentPostsWidget,    pagesWidget: PagesWidget}


Can you try adding a name to the component?

home.js

import RecentPostsWidget from './widgets/RecentPosts'import PagesWidget from './widgets/Pages'export default {    name: 'p-components-home',    components: {        RecentPostsWidget,        PagesWidget    }}