Laravel 8,NPM Wepback API 配置问题,在 Ubuntu 20.04 上使用 Yarn

Laravel 8, NPM Wepback API configuration problem, using Yarn on Ubuntu 20.04

使用 npm run dev 导致错误:

Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. configuration.module.rules[10] has an unknown property 'loaders'

重现步骤:

NPM 应该 return 一条成功消息,但显然有些东西损坏或配置错误...

问题已通过 NPM 或 Yarn 更新解决