我正在按照https://github.com/xiaodongliang/forgeviewer_embed_in_powerbi_report上的教程在 PowerBi 中创建自定义视觉对象。为了可视化3d模型作者建议安装2.5.0版本的可视化工具,否则无法使用
npm i -g powerbi-visuals-tools@2.5.0
(我实际上尝试了安装 3.2.0 而不是 2.5.0 的相同过程,实际上它不起作用,自定义视觉效果保持空白而不是向我显示模型,所以我正在使用 2.5.0 重新启动该过程api版本)
运行命令“pbiviz start”它给了我这个错误:
PS C:\Users\Gian Marco Manfredi\circlecard> pbiviz start
info Building visual...
error LESS style/visual.less : The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
visual.less 是
p {
font-size: 20px;
font-weight: bold;
em {
background: yellow;
padding: 5px;
}
}
pbiviz.json 是
{
"visual": {
"name": "circleCard",
"displayName": "CircleCard",
"guid": "circleCardA2677EDA579643169880D5D3DF0E2A32",
"visualClassName": "Visual",
"version": "1.0.0",
"description": "",
"supportUrl": "",
"gitHubUrl": ""
},
"apiVersion": "2.5.0",
"author": {
"name": "",
"email": ""
},
"assets": {
"icon": "assets/icon.png"
},
"externalJS": [
"node_modules/powerbi-visuals-utils-dataviewutils/lib/index.js"
],
"style": "style/visual.less",
"capabilities": "capabilities.json",
"dependencies": "dependencies.json",
"stringResources": []
}
我希望有人可以帮助我
谢谢!