Laravel项目中使用Vue进行项目开发,在使用composer进行安装完成 laravel/ui 框架之后,进行编译,出现报错信息如下:
✔ Compiled Successfully in 12911ms
┌───────────────────┬──────────┐
│ File │ Size
│
├───────────────────┼──────────┤
│ /js/app.js │ 1.61 MiB
│
│ css/app.css │ 200 KiB
│
└─────────
──────────┴──────────┘
1 WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)
webpack compiled with 1 warning
![图片[1]-WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)错误的解决方法-2345资源网 - 精品建站资源与技术分享平台](https://i1.nzw6.com/2023/07/20230731073417434.jpg)
出现此问题的原因在于autoprefixer@10.4.6 以后弃用了 color-adjust,所以我们需要安装低点版本的,选择autoprefixer@10.4.5
执行如下命令:
npm install autoprefixer@10.4.5 –save-exact
完成之后,再次运行
npm run dev
编译成功!
![图片[2]-WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)错误的解决方法-2345资源网 - 精品建站资源与技术分享平台](https://i1.nzw6.com/2023/07/20230731073438236.jpg)
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END









暂无评论内容