Forum Discussion

tomdenby's avatar
tomdenby
Frequent Visitor
4 years ago
Solved

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

  • dm-p's avatar
    dm-p
    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

6 Replies

  • dm-p's avatar
    dm-p
    Icon for Super User rankSuper 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

    • Anonymous's avatar
      Anonymous
      Not applicable

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

      • dm-p's avatar
        dm-p
        Icon for Super User rankSuper 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

  • Anonymous's avatar
    Anonymous
    Not 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

    • tomdenby's avatar
      tomdenby
      Frequent Visitor

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

      • Anonymous's avatar
        Anonymous
        Not applicable

        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