美文网首页
jenkins构建报错 Rollup failed to res

jenkins构建报错 Rollup failed to res

作者: 茅己硍 | 来源:发表于2025-04-15 12:01 被阅读0次

jenkins构建时报错:

Rollup failed to resolve import "axios" from "C:/Users/EDY/AppData/Local/Jenkins/.jenkins/workspace/H5-commonality/h5-public-resources/utils/request.ts".
10:34:06 This is most likely unintended because it can break your application at runtime.
10:34:06 If you do want to externalize this module explicitly add it to
10:34:06 `build.rollupOptions.external`�[31m

出错原因: 因为项目构建涉及到2个git仓库(假设A仓库、B仓库),A仓库安装了依赖,B仓库忘记npm install。而axios刚好在B仓库内使用。

相关文章

网友评论

      本文标题:jenkins构建报错 Rollup failed to res

      本文链接:https://www.haomeiwen.com/subject/fimjbjtx.html