Forum Discussion
react
- Anonymous9 years ago
I got this workaround from David Tittsworth...Thanks!
Add a global.js file with contents:
var React = window.React;
var ReactDOM = window.ReactDOM;
and then in pbiviz.json, add a reference to the global.js file in externalJS at the bottom.
This works!
I know your issue is about 6 month old but i am having the problem but right at the beginning.
Could you help to install react?
Did you install it over "npm install --save react" and "typings install --save dt~react" and how did you added all togther in your pbiviz.json and tsconfig.json?
(if you can it would be cool to see your source code <3)
Greetings
- v-viig8 years agoCommunity Champion
Hello Muesli
Please take a look at powerbi-visuals-react-sample as an example.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals