Forum Discussion
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
let me know if you need more info, im new to developing in powerbi.
Tom
Hi Anonymous,
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
6 Replies
- dm-p
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
- AnonymousNot applicable
Hey, I have been having the same issue and none of the suggested solutions work. Do you have any other suggestion?
- dm-p
Super User
Hi Anonymous,
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
- AnonymousNot applicable
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
- tomdenbyFrequent Visitor
ive not managed to try it yet. when i get round to it i will give feedback / mark as done.
- AnonymousNot applicable