咸鱼009 2021-11-22 11:17 采纳率: 81.8%
浏览 12
已结题

编译rancherUI报错' mount '关键字使用错误

问题遇到的现象和发生背景

在执行命令./scripts/build-static -d -l -s -v='rancher-ui' -c='ip地址:端口'时提示:
Template Compiler Error (TemplateCompiler) in ui/components/volume-source/source-custom-log-path/template.hbs
The mount keyword was used incorrectly. It was used as a call expression, but its valid usages are:

  • As an append statement, as in: {{mount}}
    Error caused by:
    mount.mountPath
问题相关代码,请勿粘贴截图

mount:挂载,mountPath:容器路径

img

我的解答思路和尝试过的方法

我根据提示将value改为value={{mount.mountPath}}结果失败,提示'OPEN_SEXPR', 'ID', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', got 'OPEN'

  • 写回答

1条回答 默认 最新

  • 咸鱼009 2021-11-22 16:34
    关注

    因为我是在linux下执行build-static脚本出现这个问题的,然后我参照type="text"和提示的mount换成{{mount}},将value="{{mount.mountPath}}"就可以了,但是为什么这么修改我还是有点不太明白

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 11月30日
  • 已采纳回答 11月22日
  • 创建了问题 11月22日

悬赏问题

  • ¥15 对于这个问题的代码运行
  • ¥50 三种调度算法报错 有实例
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败