【问题标题】:PowerBI Visuals Tools - error after pbiviz start commandPowerBI Visuals Tools - pbiviz start 命令后出错
【发布时间】:2019-02-21 07:17:14
【问题描述】:

我尝试开始我的自定义视觉效果(像往常一样),但是在我将 powerbi-custom-visual 从版本 3.0.10 更新到版本 beta 3.0.11 之后,我得到了以下信息错误:

error  ENOENT: no such file or directory, open '/Users/mar/CustomVisuals/rangechart/.tmp/precompile/visualPlugin.ts'
(node:1454) UnhandledPromiseRejectionWarning: Error: Failed to generate visualPlugin.ts
   at generateVisualPlugin.then.catch.ex (/usr/local/lib/node_modules/powerbi-visuals-tools/node_modules/powerbi-visuals-webpack-plugin/index.js:168:12)
   at <anonymous>

有谁知道这是为什么?我回到了powerbi-custom-visual 的先前测试版,但它没有帮助。 2.3.0 版本一切正常。

【问题讨论】:

  • 您好,您是使用新方法进行可视化开发还是只是尝试编译由稳定版工具创建的旧可视化项目?
  • @Ilfat Galiev。新的方法。我开始使用 v. 3.0.9。没有问题。后来我更新到v.3.0.10,也成功了。更新到 3.0.11 后出现问题。当我回到 3.10 时,问题并没有消失。实际上,当我想开始使用“pbiviz new newvisual”创建的纯新视觉时,我遇到了同样的错误
  • 3.0.12版工具发布。你能检查一下你的情况吗?问题解决了吗?
  • @IlfatGaliev 是的,确实如此。使用 3.0.12 一切正常。
  • @IlfatGaliev 我从 3.0.10 升级到 3.0.12 并收到此错误。 ERROR in ./.tmp/precompile/visualPlugin.ts 5:4 Module parse failed: Identifier 'NPSTableVisual' has already been declared (5:4) You may need an appropriate loader to handle this file type. | var powerbi = window[powerbiKey]; | &gt; var NPSTableVisual-e13987b0-3aaa-4ff8-a49e-3b75d655ef77_DEBUG = { | name: 'NPSTableVisual-e13987b0-3aaa-4ff8-a49e-3b75d655ef77_DEBUG', | displayName: 'NPS Table', @ multi ./.tmp/precompile/visualPlugin.ts visual.js[0]

标签: powerbi powerbi-custom-visuals pbiviz


【解决方案1】:

在我删除项目中的 .tmp 文件夹以从旧版本中清理后,我遇到了类似的情况。我发现我必须在我的项目文件夹中手动(重新)创建 .tmp/precompile 目录。不确定为什么该工具无法自行创建它们。

【讨论】:

    猜你喜欢
    • 2022-01-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-06-11
    • 2019-06-15
    • 2018-11-03
    • 2020-03-15
    相关资源
    最近更新 更多