Closed jasperf closed 3 years ago
Perhaps we need to add code from imported ./assets/vendor/MediaManager/js/manager.js
file to resources/js/editor.js
and properly. It imports multiple Vue plugins, does Axios actions, loads components and events. It also requires Axios which we already require in our code. Looking into this some more.
for the required plugins, we do need all of them and here is what they are for https://github.com/ctf0/Laravel-Media-Manager/wiki/Packages-In-Use
also from the wiki https://github.com/ctf0/Laravel-Media-Manager/wiki
remove any packages registration that you may already have in your app from
manager.js
to avoid duplications and keep your files as small as possible.
so yes u can remove any packages that u already use in ur app from the manager.js
as long as they come b4 the manager components.
i cant really tell the issue from the error log, i can run the demo repo with watch script
without any problems.
Had to upgrade a few packages: Laravel Mix to 5.0.9, Vue Tippy to 2.1.3 and use Worker Loader as devDependency, not a regular dependency . Now all builds well.
i try to update the manager as regularly as possible so b4 updating plz check the rdme for any new additions.
@ctf0 will do better with checks in the future for sure. Thanks for all the hard work on this amazing extension!
Laravel 7
Installation
We can no longer build our setup using
npm run dev
and get no feedback in logs of use really:Also see https://laracasts.com/discuss/channels/elixir/laravel-7-laravel-mix-error?page=1#reply=671756
Well if we do not load if after Vue has been initiated in our main js file ( with majority of the classes and components) all builds well, but we do need this file
require('../assets/vendor/MediaManager/js/manager.js')
as well of course. Tried loading it from bootstrap.js where some other js files are loaded but the same error occurs. Think the required file somehow clashes with other components loaded. But now sure what to do yet.. Perhaps we need to load the components directly in the main .js file instead of requiring all thisSo.. not sure yet..