Closed nyeyint closed 6 years ago
make sure u have https://github.com/ctf0/Laravel-Media-Manager/blob/18025a371cef4a19f865dde6c59122c6611955c1/src/MediaManagerServiceProvider.php#L144-L146 under ur webpack.mix.js
make sure u have initiated ur vue ex.
new Vue({
'el': '#app'
})
and have changed the path https://github.com/ctf0/Laravel-Media-Manager/blob/18025a371cef4a19f865dde6c59122c6611955c1/src/resources/views/media.blade.php#L33
Hi @ctf0 , Thanks for your reply. I already make all that steps.npm is also compile well but its show that errors.Do I need to register components in app.js file?
no, because resources/assets/vendor/MediaManager/js/manager.js
already registers the comps globally.
can u dbl check the loaded js/css files in the browser ?
Thanks @ctf0.
I will check .Do you have any other demo project installation refrence?Its would be better for all others newbie developers who want to use your package. Thanks.
Hi @ctf0,
I just create repo for unknown component error. Demo Project with laravel 5.6
Everyting is already startup for your package.
Ok. I get it.all laravel fresh installation already included configuration in app.js.I just comment these two line
require('./bootstrap');
window.Vue = require('vue');
the only prob was having to init vue
- make sure u have initiated ur vue ex.
new Vue({ 'el': '#app' })
i will add a note about that to the rdme, anyway ur problem is solved now ?
@ctf0
Yeah my problem is solved now.Thanks.
I think your readme update is not perfact.I think error is bez of this line.
window.Vue = require('vue');
u can check in my demo repo.
i dont think so, anyway i've removed this line from the manager.js
file so we now rely on the user app.js
file
that great.Thanks for your discussion.
... Laravel 5.6
...installation
...unknown component
...![untitled](https://user-images.githubusercontent.com/8743514/41861280-cf851436-78c6-11e8-9be6-68fa6b9e1661.png)