ctf0 / Laravel-Media-Manager

A "Vuejs & Laravel" Media Manager With Tons of Features
MIT License
829 stars 179 forks source link

npm run watch error. #64

Closed georgetulev closed 5 years ago

georgetulev commented 5 years ago

What version of Laravel are you using? (nothing lower than v5.4).

5.7.8

is it an issue related to installation or usage ?

Installation

what is the error you are getting ?

Running: npm run watch

Then I get the following error

ERROR in ./resources/js/app.js
Module not found: Error: Can't resolve '../vendor/MediaManager/js/manager' in '/var/www/html/resources/js'
 @ ./resources/js/app.js 12:0-44
 @ multi ./resources/js/app.js ./resources/sass/app.scss ./resources/assets/vendor/MediaManager/sass/manager.scss

Extra Info "attaching a screen shot would be very helpful"

...

Do You Know A Solution For this Issue ?

...

ctf0 commented 5 years ago

am not sure how the vendor folder path is relative to ur js folder, so instead of ../vendor/MediaManager/js/manager try to add the correct path according to ur app.js file

georgetulev commented 5 years ago

Solved it by changing the path to:

require('./../assets/vendor/MediaManager/js/manager.js');

Thanks for your fast reply!

ctf0 commented 5 years ago

rdme updated