vanilophp / framework

The truly Laravel E-commerce Framework
https://vanilo.io
MIT License
810 stars 102 forks source link

Error occured when yarn run dev #26

Closed lear2012 closed 5 years ago

lear2012 commented 5 years ago

Hi I got this error when running 'yarn run dev'

ERROR in multi ./resources/assets/js/app.js ./vendor/konekt/appshell/src/resources/assets/sass/appshell.sass Module not found: Error: Can't resolve '/Users/liaolliso/work/vaniloapp/resources/assets/js/app.js' in '/Users/liaolliso/work/vaniloapp' @ multi ./resources/assets/js/app.js ./vendor/konekt/appshell/src/resources/assets/sass/appshell.sass

not sure why this happens, any ideas much appreciated!

fulopattila122 commented 5 years ago

Thank you for the report.

Is this the first time you run yarn run dev or did it work previously?

Could you please send me the output of the commands:

composer show konekt/appshell|grep 'versions'
composer show vanilo/framework|grep 'versions'
composer show laravel/framework|grep 'versions'
fulopattila122 commented 5 years ago

If you have Laravel 5.7 then, edit your webpack.mix.js file, and change references to resources/assets/js/app.jsso that they become resources/js/app.js.

(Ie. eemove the assets/ subfolder part.)

See: Laravel 5.7 Upgrade Guide (scroll down to "Assets")

(I update the corresponding part in the Vanilo Documentation as well)

lear2012 commented 5 years ago

yeah, that's the right thing. Thanks :)