[Vuejs]-Vue doesn't recognize my components, am I registering them wrong?

0👍

Your component must be wrapped in an element with the id “app”.

<div id="app">
  <all-posts />
</div>

make sure that somewhere in your posts.blade or layouts.app you have this element surrounding the code that includes your component

0👍

Try to import the components and let your Vue instance know that there are custom components. In CreatePost.vue:

import { elUpload, elDialog } from '...'; // path to your components or lib
...
export default {
...
  components: {
    elUpload,
    elDialog,
  }
...
}

Leave a comment