Forum Discussion
dunkyboy
4 years agoFrequent Visitor
Error: Property 'createSelectionIdBuilder' does not exist on type 'IVisualHost'.
I'm receiving this error: "Property 'createSelectionIdBuilder' does not exist on type 'IVisualHost'." I'm attempting to create a custom visual on a table. This is following the Microsoft do...
- 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
dm-p
4 years agoSuper User
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
FranciscoFiuza
3 years agoRegular Visitor
Thanks for your answer, that was exacly what i was looking for!