Forum Discussion
Namespace 'powerbi.extensibility' has no exported member 'ISelectionManager'.ts(2694)
- 4 years ago
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
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
Hey, I have been having the same issue and none of the suggested solutions work. Do you have any other suggestion?
- dm-p4 years ago
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