Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please provide a store!! #118

Open
kmx2 opened this issue Apr 27, 2022 · 1 comment
Open

Please provide a store!! #118

kmx2 opened this issue Apr 27, 2022 · 1 comment

Comments

@kmx2
Copy link

kmx2 commented Apr 27, 2022

vue 2.6.14 filemanager 2.5.3

main.js
...
import store from './store'

Vue.config.productionTip = false

import FileManager from 'laravel-file-manager'
Vue.use(FileManager, {store})

new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')


error:

init.js?8fed:11 Please provide a store!!

vue.runtime.esm.js?c320:619 [Vue warn]: Error in render: "TypeError: Vue.component is not a function"

found in

---> at src/components/HelloWorld.vue
at src/views/HomeView.vue
at src/App.vue

@kmx2
Copy link
Author

kmx2 commented Apr 30, 2022

I have solved this problem.
I put "import FileManage from..." both in main.js and HelloWorld.vue that reference file-manager component, remove the import statement from HelloWord.vue, it's ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant