WARNING in child compilations (Use ‘stats.children: true’ resp. ‘–stats-children’ for more details)错误的解决方法

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资源网 - 精品建站资源与技术分享平台
出现此问题的原因在于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资源网 - 精品建站资源与技术分享平台

 

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容