Forum Discussion
Error: Property 'createSelectionIdBuilder' does not exist on type 'IVisualHost'.
- 4 years ago
Glad to hear it! Could I please trouble you to mark that post as the solution so that other community users can find it more quickly in future?
Many thanks,
Daniel
Hi dunkyboy,
The error is on line 8 - you're importing an IVisualHost with no methods exposed in its typings. IIRC this is here for backwards compatibility with a previous version of the SDK, and the documentation may be slightly out of date.
If you change the line as follows to include the correct interface, it will work:
import IVisualHost = powerbi.extensibility.visual.IVisualHost;
This will now expose the correct interface to your property and the createSelectionIdBuilder() method will be available (I've tested your code with this and it works fine for me).
Good luck!
Daniel
- dunkyboy4 years agoFrequent Visitor
Oh wow. Thanks.
That was it.
D
- FranciscoFiuza3 years agoRegular Visitor
Thanks for your answer, that was exacly what i was looking for!