我正在尝试在本地系统中运行 laravel 应用程序。我已经关注了 https://gist.github.com/hootlex/da59b91c628a6688ceb1 链接。我运行命令 php artisan serve 命令,当我浏览它时,会产生错误
PHP Fatal error: Uncaught Exception: Unable to locate Mix file: /css/vendor.css. Please check your webpack.mix.js output paths and try again. in /var/www/html/laravel-app/app/helpers.php:439
在 helpers.php 的指定行中,它有
if (! isset($manifest[$path])) {
throw new Exception(
"Unable to locate Mix file: {$path}. Please check your ".
'webpack.mix.js output paths and try again.'
);
}
公共/混合清单.json
{
"/mix.js": "/mix.js"
}
我没办法解决。请帮忙。谢谢
原文由 CR7 发布,翻译遵循 CC BY-SA 4.0 许可协议
就我而言,laravel 9 我应该更改 mix-manifest.json 文件