当前位置:网站首页>记一次报错解决经历依赖重复
记一次报错解决经历依赖重复
2022-07-02 11:38:00 【d_o_n_g2】
这个类型的报错有几种情况,我这次遇到的时候module里面的同样的类依赖多次。
1、比如说重复的包是A。B依赖A,C也依赖A,D依赖B和C和A。那这里实际解决D的重复依赖问题。所以B中的A和C中的A需要使用implementation来依赖。这样D就不会有依赖重复。D中的依赖A可以用api或者implementation都可。一般这种情况,这个A就有点类似是公共的api了。对于公共的api我个人觉得可以类似那种谷歌的库一样,直接都用implementation就行了。或者搞一个公共的module,里面的库都是以api形式依赖提供。
这里有一个容易混淆的地方。
B api A , C implementation D。
如果D implementation B:D可以使用A,C不能使用B。
D api B: D可以使用A,C能使用B。
边栏推荐
- Tujia muniao meituan has a discount match in summer. Will it be fragrant if the threshold is low?
- Chinese science and technology from the Winter Olympics (III): the awakening and evolution of digital people
- Fabric.js 上划线、中划线(删除线)、下划线
- obsidian安装第三方插件——无法加载插件
- Bit by bit of OpenCV calling USB camera
- uniapp自动化测试学习
- 【空间&单细胞组学】第1期:单细胞结合空间转录组研究PDAC肿瘤微环境
- Fabric. Keep the original level when JS element is selected
- 【无标题】LeetCode 2321. 拼接数组的最大分数
- 提示:SQL Server 阻止了对组件‘Ad Hoc Distributed Queries ‘的STATEMENT ‘OpenRowset/OpenDatasource“”
猜你喜欢
提示:SQL Server 阻止了对组件‘Ad Hoc Distributed Queries ‘的STATEMENT ‘OpenRowset/OpenDatasource“”
Fabric. JS free draw circle
Certik released the defi security report in 2021, disclosing key data of industry development (PDF download link attached)
PHP linked list creation and traversal
测试框架TestNG的使用(二):testNG xml的使用
由粒子加速器产生的反中子形成的白洞
微信小程序使用towxml显示公式
Error: NPM warn config global ` --global`, `--local` are deprecated Use `--location=global` instead.
MathML to latex
uniapp自动化测试学习
随机推荐
测试框架TestNG的使用(二):testNG xml的使用
taobao. trades. sold. Get query the transaction data that the seller has sold (according to the creation time), Taobao store sales order query API interface, Taobao R2 interface, Taobao oauth2.0 trans
Stm32-dac Experiment & high frequency DAC output test
1、编辑利器vim
Advanced C language (realize simple address book)
Delete element (with transition animation)
obsidian安装第三方插件——无法加载插件
fatal: unsafe repository is owned by someone else 的解决方法
微信小程序使用towxml显示公式
STM32 standard firmware library function name (I)
Tujia muniao meituan has a discount match in summer. Will it be fragrant if the threshold is low?
Makefile separates file names and suffixes
复用和分用
Find the maximum inscribed circle of the contour
< schematic diagram of oral arithmetic exercise machine program development> oral arithmetic exercise machine / oral arithmetic treasure / children's math treasure / children's calculator LCD LCD driv
Why can't browsers read JSX?
< schéma de développement de la machine d'exercice oral > machine d'exercice oral / trésor d'exercice oral / trésor de mathématiques pour enfants / lecteur LCD de calculatrice pour enfants IC - vk1621
Error: NPM warn config global ` --global`, `--local` are deprecated Use `--location=global` instead.
LeetCode 2310. 个位数字为 K 的整数之和
天猫商品详情接口(APP,H5端)