简体   繁体   English

Power BI自定义视觉-强制有向图API错误

[英]Power BI Custom Visual - force directed graph API error

I'm trying to create a custom Force Directed Graph using the source code on Github ( PowerBI-visuals-ForceGraph ) and following the tutorial available at creating-a-custom-visual . 我正在尝试使用Github上的源代码( PowerBI-visuals-ForceGraph )创建一个自定义的强制有向图,并按照create -a-custom-visual上可用的教程进行操作。 Unfortunately, when I try to start the custom visual using the "pbiviz start" command in PowershellI I get an error stating "Invalid API version v2.3.0". 不幸的是,当我尝试在PowershellI中使用“ pbiviz start”命令启动自定义图像时,出现错误,提示“无效的API版本v2.3.0”。

The "circlecard" example project used in the tutorial, which also uses API version v2.3.0 in it's pbiviz.json file, works just fine. 本教程中使用的“ circlecard”示例项目(在其pbiviz.json文件中也使用API​​版本v2.3.0)工作正常。 So I'm clueless as to what's causing this error. 因此,我对导致此错误的原因一无所知。 I'm very new to trying out custom visuals on Power BI so any help with this is greatly appreciated. 我在Power BI上尝试自定义视觉效果还很陌生,因此对此提供的任何帮助将不胜感激。

Thanks in advance! 提前致谢!

尝试npm install ,然后npm run start ,应该可以:)

PowerBI-visuals-ForceGraph visual was converted to use the new version of powerbi-visuals-tools@beta PowerBI-visuals-ForceGraph视觉文件已转换为使用新版本的powerbi-visuals-tools @ beta

If you installed the tools as global by command: 如果通过命令将工具安装为全局工具:

npm i powerbi-visuals-tools --global

and run pbiviz start from global instance it will not work, because old tools doesn't support a new format of visual project. 并从全局实例pbiviz start运行pbiviz start它将不起作用,因为旧工具不支持可视项目的新格式。

npm run start - start powerbi-visuals-tools from local instance npm run start start-从本地实例启动powerbi-visuals-tools

specified in package.json of the visual: https://github.com/Microsoft/PowerBI-visuals-ForceGraph/blob/master/package.json#L71 在视觉效果的package.json中指定: https : //github.com/Microsoft/PowerBI-visuals-ForceGraph/blob/master/package.json#L71

You need to install beta version of tool as global or run npm run start to use the new tools 您需要将工具的Beta版安装为全局工具,或者运行npm run start才能使用新工具

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM