The $store property on the component seems to be undefined. I have followed the instructions for installation of both the front end package and back end package closely but I cannot see why I am getting this error.
Here is my app.js for my laravel project:
window.Vue = require('vue').default; // I also tried using "import Vue from 'Vue'" like the instructions specify
...
import Vuex from 'Vuex';
import FileManager from 'laravel-file-manager';
Vue.use(Vuex);
const store = new Vuex.Store();
Vue.use(FileManager, {store});
My config/file-manager.php is the default setup that was given.
I am using laravel's webpack to compile my assets.
I am getting this error in my javascript console:
The
$store
property on the component seems to be undefined. I have followed the instructions for installation of both the front end package and back end package closely but I cannot see why I am getting this error.Here is my app.js for my laravel project:
My config/file-manager.php is the default setup that was given.
I am using laravel's webpack to compile my assets.