semeniuk / vuetify-file-browser

Open source file manager component for web (Vue.js, Vuetify, Node.js)
MIT License
166 stars 52 forks source link

Error while loading this package #3

Open abhimanusharma opened 4 years ago

abhimanusharma commented 4 years ago

Hi,

I have vuetify 2.3.10 and vuetify-file-browser 1.0.2.

When I am trying to use this package in a vue component this package is not loading properly and throwing these errors in the browser console.

TypeError: this.items.filter is not a function
    at VueComponent.dirs (app.js:50538)
    at Watcher.get (app.js:199624)
    at Watcher.evaluate (app.js:199739)
    at VueComponent.computedGetter [as dirs] (app.js:199987)
    at Object.get (app.js:197296)
    at Proxy.render (app.js:125673)
    at VueComponent.Vue._render (app.js:198688)
    at VueComponent.updateComponent (app.js:199213)
    at Watcher.get (app.js:199624)
    at Watcher.run (app.js:199710)

and

[Vue warn]: Error in render: "TypeError: this.items.filter is not a function"

found in

---> <List> at node_modules/vuetify-file-browser/src/List.vue
       <VCard>
         <FileBrowser> at node_modules/vuetify-file-browser/src/FileBrowser.vue
           <MdTableRow> at src/components/MdTable/MdTableRow.vue
             <MdContent> at src/components/MdContent/MdContent.vue... (1 recursive calls)
               <MdTable> at src/components/MdTable/MdTable.vue
                 <MdCardContent> at src/components/MdCard/MdCardContent/MdCardContent.vue
                   <MdCard> at src/components/MdCard/MdCard.vue
                     <Documents> at resources/js/pages/dashboard/Documents.vue
                       <DashboardLayout> at resources/js/pages/dashboard/Index.vue
                         <App> at resources/js/App.vue

and

app.js:51072 Uncaught (in promise) TypeError: response.data.map is not a function
    at VueComponent._callee$ (app.js:51072)
    at tryCatch (app.js:83349)
    at Generator.invoke [as _invoke] (app.js:83568)
    at Generator.prototype.<computed> [as next] (app.js:83402)
    at asyncGeneratorStep (app.js:50948)
    at _next (app.js:50950)