Laravel Mix 构建的项目,但是咋postman访问接口的时候出现 The Mix manifest does not exist,该如何处理?(标注:只是用postman请求接口,并不渲染前端的页面)
1. 运行环境
win10
1). 当前使用的 Laravel 版本?
8.0
2). 当前使用的 php/php-fpm 版本?
PHP 版本:7.4
php-fpm 版本:
7.4
//: <> (代码里 phpinfo 函数,然后页面访问查看 php-fpm 版本)
//: <> (如不方便使用 phpinfo 函数 ,使用 ps aux | grep php-fpm.conf
命令查)
//: <> ( 看 php-fpm 版本。如有多个,请以 nginx 站点配置为准。)
3). 当前系统
4). 业务环境
5). 相关软件版本
2. 问题描述?
Laravel Mix 构建的项目,但是咋postman访问接口的时候出现 The Mix manifest does not exist,该如何处理?(标注:只是用postman请求接口,并不渲染前端的页面)
Facade\Ignition\Exceptions\ViewException: The Mix manifest does not exist. (View: D:\code\questionBank\resources\views\index.blade.php) in file D:\code\questionBank\vendor\laravel\framework\src\Illuminate\Foundation\Mix.php on line 52
//: <> (代码问题的话,请提供一份最短的,可复现问题的代码。或者相关代码)
3. 您期望得到的结果?
4. 您实际得到的结果?
可以解释一下为什么只访问接口的时候,也要加载Laravel Mix 吗?
//: <> (有报错信息的话把堆栈信息提供出来)
推荐文章: