Laravel/Vuetify needs an appropriate loader to handle this file type (mp4)

假如想象 提交于 2019-12-11 08:14:13

问题


I'm currently working on a Laravel/Vue image carousel and the images are rendering fine but when I load the videos using the v-playback component, I get the following error:

Module parse failed: Unexpected character ' ' (1:0)
You may need an appropriate loader to handle this
file type, currently no loaders are configured to
process this file.

I've tried looking for a webpack.config.js but what I got is a webpack.mix.js which only has these:

const mix = require('laravel-mix');

mix.js('resources/js/app.js', 'public/js')
    .sass('resources/sass/app.scss', 'public/css');

I did manage to find a webpack.config.js in the laravel-mix folder in node_modules but I'm not sure if that's the one I need to be tinkering with.


回答1:


Ensure that your url is pointing to the exact path and file extension where the video is located . Your url should probably point to something like this ../public/videos/name_of_video.mp4



来源:https://stackoverflow.com/questions/57605363/laravel-vuetify-needs-an-appropriate-loader-to-handle-this-file-type-mp4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!