specklesystems/speckle-powerbi-visuals

Errors with packaging of Speckle

Closed this issue · 1 comments

I am getting 6 errors when I do pbiviz start

Prerequisites

What package are you referring to?

https://github.com/specklesystems/speckle-powerbi-visuals/tree/main/src

Describe the bug

When I run the command pbiviz start I am getting 6 errors related to the webpack tool.

To Reproduce

  1. Go to (https://github.com/specklesystems/speckle-powerbi-visuals/tree/main/src)
  2. Download and unpack the sources
  3. Open Powershell with the directory containing the source code
  4. Run pbiviz start

Expected behavior

On the Power BI Service the developer's visual must show a content but it shows the error

Screenshots

2023-08-16 06_26_05-

Image20230816062824

System Info

Desktop (please complete the following information):

  • Windows 10 x64
  • Chrome Version 115.0.5790.171 (Official Build) (64-bit)

Smartphone (please complete the following information):

Failure Logs

build_package.log.txt

Additional context

Proposed Solution (if any)

Answer here please

Optional: Affected Projects

Hi there @alex-v-ivanov!

The reason it's no longer working is that we had to move away from the pbiviz tool in favor of packing everything directly with webpack.

If you check the package.json scripts, you'll see none of them are using pbiviz anymore. Running those should do the trick.

"scripts": {
"pack": "webpack --config webpack.config.ts",
"build": "webpack --config webpack.config.dev.ts",
"serve": "webpack-dev-server --config webpack.config.dev.ts"
},