ant-design / antd-dayjs-webpack-plugin

⏰ Day.js webpack plugin for Ant Design
https://ant.design/docs/react/use-with-create-react-app-cn#%E4%BD%BF%E7%94%A8-Day.js-%E6%9B%BF%E6%8D%A2-momentjs-%E4%BC%98%E5%8C%96%E6%89%93%E5%8C%85%E5%A4%A7%E5%B0%8F
290 stars 30 forks source link

[bug] yarn2: antd-dayjs-webpack-plugin tried to access loader-utils, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound. #78

Open ghost opened 1 year ago

ghost commented 1 year ago

logs:

ERROR in ./.yarn/__virtual__/antd-dayjs-webpack-plugin-virtual-801a2ea2c9/4/C:/Users/liyunhe6/AppData/Local/Yarn/Berry/cache/antd-dayjs-webpack-plugin-npm-1.0.6-a748d76f6d-8.zip/node_modules/antd-dayjs-webpack-plugin/src/init-dayjs-webpack-plugin-entry.js
Module build failed: Error: antd-dayjs-webpack-plugin tried to access loader-utils, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: loader-utils
Required by: antd-dayjs-webpack-plugin@virtual:1e6fd160411d1a7eaf7aaceba79c528304144aa23922622d397d5c769649a2cfce311f3391167f46d92f2245a840f0a3ccbbfd7e7113275be0a6a690b187a4f0#npm:1.0.6 (via D:\Repos\ux-pc - 副本\.yarn\__virtual__\antd-dayjs-webpack-plugin-virtual-801a2ea2c9\4\C:\Users\liyunhe6\AppData\Local\Yarn\Berry\cache\antd-dayjs-webpack-plugin-npm-1.0.6-a748d76f6d-8.zip\node_modules\antd-dayjs-webpack-plugin\src\)
ghost commented 1 year ago

内部使用的是 loader-utils https://www.npmjs.com/package/loader-utils/v/2.0.4