alexusmai / vue-laravel-file-manager

Frontend for Laravel File Manager on Vue.js
MIT License
358 stars 161 forks source link

sos,vue2 error #114

Open zhanghaifei1997 opened 2 years ago

zhanghaifei1997 commented 2 years ago

sos, hello, my project is the vue2 version, using less. But I found an error after running, and the style reported an error

zhanghaifei1997 commented 2 years ago

Because my project is vue2+less, after ($ npm install laravel-file-manager --save), I report the lack of sass-loader first, and then after I (yarn add sass-loader), run it again ( TypeError: this.getOptions is not a function)

MuratDemirel commented 2 years ago

latest version works with only vue3. to use with vue2, install previous version. i'm using 2.5.3 at my vue2 project. try

npm uninstall laravel-file-manager
npm uninstall sass-loader
npm install sass-loader@10.1.1
npm install laravel-file-manager@2.5.3

if you get error while installing sass-loader with npm, switch your project to yarn. delete node-modules folder and package-lock.json file from root path, and run

yarn install
yarn add sass-loader@10.1.1
yarn add laravel-file-manager@2.5.3