咸鱼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日