Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
issue
issue
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

  • chainmaker
  • issueissue
  • Issues
  • #1244

Closed
Open
Opened Nov 14, 2024 by 13983877465@139838774651 of 19 tasks completed1/19 tasks

部署区块链浏览器chainmaker-explorer-web编译报错

【问题分类】

  • bug
  • P2P网络相关(包含libp2p,liquid)
  • 链账户身份与权限相关(证书问题、public、多签投票问题)
  • 核心交易引擎相关(交易池、DAG)
  • 共识相关
  • 智能合约相关
  • 存储相关
  • SDK相关
  • 长安链CMC工具
  • 长安链管理台
  • 长安链浏览器
  • 长安链合约IDE
  • 长安链web签名插件
  • 跨链相关
  • 轻节点相关
  • 隐私计算相关
  • 密码学相关
  • 环境依赖
  • 其他补充:

【问题描述】

在编译chainmaker-explorer-web v2.3.0,进行到npm run build时发生报错

【相关日志文件】

image

image

image

【问题定位】

根据日志

 requires Babel"^7.16.0", but was loaded with "7.12.3"

推测是包的版本不对应造成的

【临时解决方案】

修改 build.Dockerfile,添加对应包的安装。

RUN npm config set strict-ssl false
RUN rm -rf node_modules && rm package-lock.json
RUN npm cache clean --force
RUN npm install @babel/core@^7.16.0 @babel/plugin-proposal-private-property-in-object
RUN npm install
RUN npm run build
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: chainmaker/issue#1244

Copyright © 2021 ChainMaker Org. All Rights Reserved. 长安链 版权所有。