microsoft / PowerBI-visuals-tools

Contains tools for building/packaging Power BI visuals
https://www.powerbi.com
MIT License
330 stars 149 forks source link

Failed to generate visualPlugin.ts #451

Closed rakucmr closed 1 year ago

rakucmr commented 1 year ago

I'm runing pbiviz package and getting this error:

Type '(options: VisualConstructorOptions) => Visual' is not assignable to type '(options?: VisualConstructorOptions | undefined) => IVisual'.
  Types of parameters 'options' and 'options' are incompatible.
    Type 'VisualConstructorOptions | undefined' is not assignable to type 'VisualConstructorOptions'.
      Type 'undefined' is not assignable to type 'VisualConstructorOptions'.ts(2322)
visuals-api.d.ts(167, 9): The expected type comes from property 'create' which is declared here on type 'IVisualPlugin'

I think is related with plugin-template.js from powerbi-visuals-webpack-plugin, also you have a pull request https://github.com/microsoft/powerbi-visuals-webpack-plugin/pull/74

Can you fix it?

What can I do to package my project?

AleksSavelev commented 1 year ago

A new version of tools has been published.