Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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 definedAnd 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).
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |