当前位置:网站首页>记一次报错解决经历依赖重复
记一次报错解决经历依赖重复
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。
边栏推荐
- String matching problem
- 途家木鸟美团夏日折扣对垒,门槛低就一定香吗?
- Fabric.js 橡皮擦的用法(包含恢复功能)
- There is no solution to the decryption error of the remote user 'sa' and the service master password mapped from the remote server 'to the local user' (null) /sa '
- STM32 standard firmware library function name (I)
- Some Chinese character codes in the user privacy agreement are not standardized, which leads to the display of garbled codes on the web page. It needs to be found and handled uniformly
- Fabric.js 上划线、中划线(删除线)、下划线
- Advanced C language (realize simple address book)
- 【NOI模拟赛】刮痧(动态规划)
- 测试框架TestNG的使用(二):testNG xml的使用
猜你喜欢

buuctf-pwn write-ups (7)

Fabric. JS free draw circle

Advanced C language (realize simple address book)

微信小程序使用towxml显示公式

复用和分用

报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

Daily learning 3

Fabric. Usage of JS eraser (including recovery function)
[email protected] : The platform “win32“ is incompatible with this module."/>info [email protected] : The platform “win32“ is incompatible with this module.

Advanced C language (learn malloc & calloc & realloc & free in simple dynamic memory management)
随机推荐
Chinese science and technology from the Winter Olympics (III): the awakening and evolution of digital people
MQ tutorial | exchange (switch)
Fabric.js 自由绘制椭圆
没有从远程服务器‘‘映射到本地用户‘(null)/sa‘的远程用户‘sa‘及服务主密码解密错误的解决办法
Thoroughly master prototype__ proto__、 Relationship before constructor (JS prototype, prototype chain)
Fabric. Usage of JS eraser (including recovery function)
Yyds dry goods inventory software encryption lock function
< 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
【题解】Educational Codeforces Round 82
[Space & single cellomics] phase 1: single cell binding space transcriptome research PDAC tumor microenvironment
Tip: SQL Server blocked the state 'openrowset/opendatasource' of component 'ad hoc distributed queries'
STM32 library function for GPIO initialization
Onnx+tensorrt: write preprocessing operations to onnx and complete TRT deployment
NLA natural language analysis realizes zero threshold of data analysis
复用和分用
求轮廓最大内接圆
Available solution development oral arithmetic training machine / math treasure / children's oral arithmetic treasure / intelligent math treasure LCD LCD driver ic-vk1622 (lqfp64 package), original te
Makefile 分隔文件名与后缀
Fabric. JS free drawing ellipse
Yolov6 training: various problems encountered in training your dataset