我尝试启动
nebula-dashboard-3.2.0
但是它报错,说TypeError: Cannot read property 'target' of undefine
[root@nebula-graph-dashboard-6f47c468b9-fr2zp nebula-dashboard]# ./dashboard
[HPM] Proxy created: / -> http://localhost:9090
[HPM] Proxy rewrite rule created: "/api-metrics" ~> "/api/v1"
pkg/prelude/bootstrap.js:1930
return wrapper.apply(this.exports, args);
^
TypeError: Cannot read property 'target' of undefined
at Object.<anonymous> (/snapshot/nebula-dashboard/server/server.js)
at Module._compile (pkg/prelude/bootstrap.js:1930:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at Function.runMain (pkg/prelude/bootstrap.js:1983:12)
您可以查看配置文件:
config.json
{
“port”: 7003,
“proxy”:{
“prometheus”:{
“target”: “localhost:9090”
},
“graph”:{
“target”: “10.23.241.210:19669”
},
“storage”:{
“target”: “nebula-storaged-0.nebula-storaged-headless.ns-nebula-prod.svc.cluster.local:19779”
}
},
“nebulaServer”: {
“ip”: “10.23.241.8”,
“port”: 9669
}
}
你能帮忙指出错误的代码吗?