当前位置:网站首页>Problems encountered in Jenkins' release of H5 developed by uniapp
Problems encountered in Jenkins' release of H5 developed by uniapp
2022-07-07 17:24:00 【Hua Weiyun】
Catalog
1、 Ideas 1( You don't succeed ):
Preface :
background : For historical reasons , The company has a historical project using vue Developed official account H5, A native wechat applet . The functions of both ends are exactly the same , But two projects need to be maintained , Recently, the customer has raised a need to modify some functions , After the blogger receives the demand , I feel that maintaining two sets of code is not just repeated development , It's troublesome to test , Because two people developed different terminals before , Lead to most bug It's all caused by inconsistency at both ends . To save time and maintenance costs , Improve the efficiency of development and testing , In repeated comparative research , Finally, I chose uniapp The technical framework is reconstructed by merging both ends .
One 、 problem :
Company use Jenkins Issue official account H5, In the use of uniapp Before , The release has been very stable , Replace uniapp after , Issue official account H5 Occasionally, there will be inexplicable abnormalities , It makes me and O & M have a headache , An error is as follows :
Two 、 Solving experiences :
The exception throw cannot locate whether it is the front-end problem or the operation and maintenance deployment problem , At first, we can only follow the routine Jenkins Error reporting search process , But this is strange Jenkins Release normal , It's just that the project can't run , Only the screenshot of the console appeal is wrong , So there is no corresponding solution at all , I can only continue to guess whether it is Jenkins Is there a problem here .
1、 Ideas 1( You don't succeed ):
Because local compilation , Local packaging and publishing can be successful , Later, I guessed whether it was local node Version follows Jenkins Online configuration node The version is wrong , So we tried again , Local node The version is modified to try to troubleshoot as online , It's OK not to try , Try to scare , There is also a problem with local packaging after trying . Fortunately, I made a backup before , Otherwise, there is no alternative distribution plan ...
2、 Ideas 2( success ):
Readjust your thinking , It is used to point to the location where the error is found during local debugging async+await , So I wondered if it was node Chinese analysis ES6 turn ES5 Of babel There is a problem with the plug-in version , Because I always use yarn, This time try to delete node-modules,node The version is still fixed in 14, Use npm install, then npm run serve try , Finally, it's ok .
3、 ... and 、 Cause analysis :
yarn install The reason for the error is because npm and yarn The merge strategy is different when installing dependencies , Cause the dependent version to be different from the expected result .
If you still want to pass yarn Management dependence , You can modify the project root directory package.json in devDeps rely on @babel/runtime The version is ~7.17.9, And increase
Lock the dependent version .
summary
From problem discovery to solution , At first, I thought it was Jenkins The problem of , Wasted some energy , Then adjust the direction. , Until we find a solution . Although it is very tortuous , But still happy . So record that . I hope this record can help you to see this article .
边栏推荐
- skimage学习(2)——RGB转灰度、RGB 转 HSV、直方图匹配
- A tour of grpc:03 - proto serialization / deserialization
- 【源码解读】| LiveListenerBus源码解读
- 【图像传感器】相关双采样CDS
- User defined view essential knowledge, Android R & D post must ask 30+ advanced interview questions
- A tour of gRPC:03 - proto序列化/反序列化
- Blue Bridge Cup final XOR conversion 100 points
- NeRF:DeepFake的最终替代者?
- mysql实现两个字段合并成一个字段查询
- LeetCode 1186. Delete once to get the sub array maximum and daily question
猜你喜欢
自定义View必备知识,Android研发岗必问30+道高级面试题
专精特新软件开发类企业实力指数发布,麒麟信安荣誉登榜
skimage学习(3)——使灰度滤镜适应 RGB 图像、免疫组化染色分离颜色、过滤区域最大值
《产品经理必读:五种经典的创新思维模型》的读后感
QT中自定义控件的创建到封装到工具栏过程(一):自定义控件的创建
Matplotlib绘图界面设置
直接上干货,100%好评
Nerf: the ultimate replacement for deepfake?
The process of creating custom controls in QT to encapsulating them into toolbars (II): encapsulating custom controls into toolbars
A tour of grpc:03 - proto serialization / deserialization
随机推荐
LeetCode 403. 青蛙过河 每日一题
MySQL usage notes 1
Flask搭建api服务-SQL配置文件
LeetCode 403. Frog crossing the river daily
Skimage learning (2) -- RGB to grayscale, RGB to HSV, histogram matching
LeetCode 1654. The minimum number of jumps to get home one question per day
PLC: automatically correct the data set noise, wash the data set | ICLR 2021 spotlight
Flash build API Service - generate API documents
国内首创!Todesk将RTC技术融入远程桌面,画质更清晰操作更流畅
QML beginner
Skimage learning (3) -- adapt the gray filter to RGB images, separate colors by immunohistochemical staining, and filter the maximum value of the region
【视频/音频数据处理】上海道宁为您带来Elecard下载、试用、教程
[Huang ah code] Why do I suggest you choose go instead of PHP?
LeetCode 1186. 删除一次得到子数组最大和 每日一题
Seaborn数据可视化
How to mount the original data disk without damage after the reinstallation of proxmox ve?
【饭谈】那些看似为公司着想,实际却很自私的故事 (一:造轮子)
Pycharm IDE下载
LeetCode 1981. Minimize the difference between the target value and the selected element one question per day
PLC:自动纠正数据集噪声,来洗洗数据集吧 | ICLR 2021 Spotlight