Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tomdenby
Frequent Visitor

Namespace 'powerbi.extensibility' has no exported member 'ISelectionManager'.ts(2694)

i'm getting the following error and wondered if anyone knows what is causeing it or some trouble shooting methods 

tomdenby_0-1638385837673.png

 

let me know if you need more info, im new to developing in powerbi. 

 

Tom

1 ACCEPTED SOLUTION

Hi @Ledia,

Have you imported the powerbi API first?

import powerbi from 'powerbi-visuals-api';

In order to access the powerbi.extensibility namespace, you first need powerbi as a valid object that can be accessed in your current file.

(revisiting the OP, this might be the problem here too; I didn't spot that it was missing from their code initially)

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

6 REPLIES 6
v-yiruan-msft
Community Support
Community Support

Hi @tomdenby ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem with you. Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

ive not managed to try it yet. when i get round to it i will give feedback / mark as done. 

Hi @tomdenby ,

We look forward to your response after testing the method which suggested by @dm-p . If you have any problem or comment, please feel free to contact us. Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
dm-p
Super User
Super User

Hi @tomdenby,

The errors suggest that the powerbi-visuals-api package is not local to your project (the references look correct).

Check your project's package.json - is there a reference to powerbi-visuals-api under dependencies or devDependencies? If so, then it might mean that your code is checked out but dependencies have not been installed. Running:

npm i

... from the root folder of your project should resolve it.

If your package.json does not include it, run:

npm i powerbi-visuals-tools --save-dev

...from the command line to install the package.

If neither of these work, you will need to provide more details for us to help debug further. Do you have a link to your source code?

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Ledia
Frequent Visitor

Hey, I have been having the same issue and none of the suggested solutions work. Do you have any other suggestion?

Hi @Ledia,

Have you imported the powerbi API first?

import powerbi from 'powerbi-visuals-api';

In order to access the powerbi.extensibility namespace, you first need powerbi as a valid object that can be accessed in your current file.

(revisiting the OP, this might be the problem here too; I didn't spot that it was missing from their code initially)

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.