ais-one/cookbook

lots of errors

roydekleijn opened this issue · 3 comments

I'm trying to use this package, but I get a lot of errors:

app.js:41304 [Vue warn]: Missing required prop: "storeName"

found in

---> <VueCrudX>
       <Book> at resources/js/components/About.vue
         <VContent>
           <VApp>
             <App> at resources/js/views/App.vue
               <Root>

app.js:41304 [Vue warn]: Missing required prop: "crudFilter"

found in

---> <VueCrudX>
       <Book> at resources/js/components/About.vue
         <VContent>
           <VApp>
             <App> at resources/js/views/App.vue
               <Root>

app.js:41304 [Vue warn]: Missing required prop: "crudTable"

found in

---> <VueCrudX>
       <Book> at resources/js/components/About.vue
         <VContent>
           <VApp>
             <App> at resources/js/views/App.vue
               <Root>

app.js:41304 [Vue warn]: Missing required prop: "crudForm"

found in

---> <VueCrudX>
       <Book> at resources/js/components/About.vue
         <VContent>
           <VApp>
             <App> at resources/js/views/App.vue
               <Root>

app.js:41304 [Vue warn]: Missing required prop: "crudOps"

found in

---> <VueCrudX>
       <Book> at resources/js/components/About.vue
         <VContent>
           <VApp>
             <App> at resources/js/views/App.vue
           
app.js:42567 TypeError: Cannot read property 'doPage' of undefined
    at VueComponent.created (app.js:36755)
    at invokeWithErrorHandling (app.js:42533)
    at callHook (app.js:44884)
    at VueComponent.Vue._init (app.js:45666)
    at new VueComponent (app.js:45811)
    at createComponentInstanceForVnode (app.js:43960)
    at init (app.js:43791)
    at createComponent (app.js:46637)
    at createElm (app.js:46584)
    at createChildren (app.js:46712)

app.js:41304 [Vue warn]: Error in mounted hook (Promise/async): "TypeError: Cannot read property 'getters' of undefined"

my app.js looks like this:

import VueCrudX from 'vue-crud-x/dist/VueCrudX';

Vue.component('vue-crud-x', VueCrudX);

What is minimum amount of code I need to implement a CRUD table?

What is storeName about?

Hi, sorry for the late reply. Could you try the V1 branch.

The storename is the Vuex Store Name.

Anyway if you are new to this CRUD component. Please wait another week. I have made a v2 branch which uses the upcoming Vuetify V2 and can also be more easily adaptable to other frameworks than our previous release.

It is also cleaner and easier to use.

I am already writing a dev.to article on how to use...

For those properties you are missing. Please see the example projects, you can find examples there.

Feedback from some users was that the getting started was not easy and complicated. This should change in our next version.

The current work will still be supported in v1 branch.