Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi !
I'm trying to create a custom visual and i'm trying to put a tooltip in it.
But I have a problem when I do the :
this.tooltipServiceWrapper = createTooltipServiceWrapper(this.host.tooltipService, options.element);
In the constructor of my class Visual implements IVisual, I have an error in the console and my visual crash, my error is :
Uncaught ReferenceError: regeneratorRuntime is not defined
And when I comment the line where I have a problem it works good.
I don't know how to solved it, someone can help me ?
Thanks in advance !
Solved! Go to Solution.
Hi @Anonymous,
Run the following for your plugin's root folder:
npm i regenerator-runtime --save-dev
And then add the following at the top of your visual.ts, underneath import 'core-js/stable'; and before import '../style/visual.less';, e.g.:
...
import 'core-js/stable';
import 'regenerator-runtime/runtime'; /* Right here */
import '../style/visual.less';
...
If you re-run pbiviz start and re-check your visual, this error will go away as the necessary runtime is included in your build. Then, in the true spirit of coding it's onto the next error (but hopefully not) 🙂
Good luck!
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Hi @Anonymous,
Run the following for your plugin's root folder:
npm i regenerator-runtime --save-dev
And then add the following at the top of your visual.ts, underneath import 'core-js/stable'; and before import '../style/visual.less';, e.g.:
...
import 'core-js/stable';
import 'regenerator-runtime/runtime'; /* Right here */
import '../style/visual.less';
...
If you re-run pbiviz start and re-check your visual, this error will go away as the necessary runtime is included in your build. Then, in the true spirit of coding it's onto the next error (but hopefully not) 🙂
Good luck!
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
It works ! Thanks a lot ! (I have another error now but i'm trying to fix it).
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |