alexusmai / vue-laravel-file-manager

Frontend for Laravel File Manager on Vue.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sos,vue2 error

zhanghaifei1997 opened this issue · comments

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

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)

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