0

I am trying to use PowerBI-visuals-tools. I am following the steps as per they mentioned. I am able to start the server from command line as below

enter image description here

But, in the browser, I am getting blank page. I saw the error in console coming as

Visual constructor undefined 
visual.ts:36 Uncaught TypeError: Cannot read 
property 'element' of undefined     at new Visual (visual.ts:36)     at 
Object.create (visualPlugin.ts:8)     at (index):20

Can you please help why am I getting this error even I followed the steps from Github?

enter image description here

Thanks in advance.

Foxan Ng
  • 6,883
  • 4
  • 34
  • 41
user6250770
  • 680
  • 2
  • 10
  • 25

1 Answers1

1

The debug visual is currently only available in the Power BI Service. You can navigate to https://app.powerbi.com/ and open any reports, then add the debug visual.

debug-1

You'll see the hello world visual if the server is up and running.

debug-2

For more details, please check out this.

Foxan Ng
  • 6,883
  • 4
  • 34
  • 41
  • no need to do in locally? then why https://github.com/Microsoft/PowerBI-visuals is for? can u please let me know.. as i am very new to this – user6250770 Jul 27 '17 at 09:47
  • You need to work both locally and with the service to develop your visual. You develop the visual locally, with Visual Studio Code, for instance; but serve it up to the service via pbiviz start. After you run pbiviz start, every time you save your code, it will push the latest version of your visual that you are developing to the service so that you can see it through the debug visual that @Foxan Ng mentioned. You need to enable the debug visual via Settings/General/Developer. ...Check the box for "Enable developer visual for testing." – Marc Pincince Jul 27 '17 at 12:25
  • Hi @user6250770 does this help solving the issue after all? If so, you can [accept this answer](https://meta.stackexchange.com/a/5235/313506) to positively close the question. – Foxan Ng Nov 14 '17 at 04:34