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.
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
Solved! Go to 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
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)
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
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
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
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)
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
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)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
1 | |
1 | |
1 |