Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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 this issue May 9, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented May 9, 2023

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
Copy link
Author

ghost commented May 9, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants