<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Visual Studio Code cannot find VisualUpdateOptions in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Visual-Studio-Code-cannot-find-VisualUpdateOptions/m-p/211279#M6668</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently trying to learn how I can create custom visuals and PowerBI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Microsoft/PowerBI-visuals-sampleBarChart" target="_blank"&gt;This is the guide I'm following.&lt;/A&gt;&amp;nbsp;I'm stuck at the "&lt;STRONG&gt;&lt;FONT size="2"&gt;Adding Databinding to Bar Chart"&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;part. Specifically where I have to create the visualTransform function.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;When I write the method head, Visual Studio Code underlines "VisualUpdateOptions" and "IVisualHost" red, saying it can't find those.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/49900i0653D6AAFB08A103/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error.PNG" alt="Error.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I have copied the dependencies from the package.json on github into the package.json of my project and installed them. I also added all the dependencies into the pbiviz.json and tsconfig.json.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;When I download the project from github and run it it works, without being underlined.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;What am I missing?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;UPDATE: The problem was that I didn't specify the barChart.ts file in the tsconfig.json.&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FIx.PNG" style="width: 541px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/49914i86F16C91F2E273B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="FIx.PNG" alt="FIx.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2017 13:04:32 GMT</pubDate>
    <dc:creator>ConnectedRoman</dc:creator>
    <dc:date>2017-07-13T13:04:32Z</dc:date>
    <item>
      <title>Visual Studio Code cannot find VisualUpdateOptions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Visual-Studio-Code-cannot-find-VisualUpdateOptions/m-p/211279#M6668</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently trying to learn how I can create custom visuals and PowerBI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Microsoft/PowerBI-visuals-sampleBarChart" target="_blank"&gt;This is the guide I'm following.&lt;/A&gt;&amp;nbsp;I'm stuck at the "&lt;STRONG&gt;&lt;FONT size="2"&gt;Adding Databinding to Bar Chart"&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT size="2"&gt;part. Specifically where I have to create the visualTransform function.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;When I write the method head, Visual Studio Code underlines "VisualUpdateOptions" and "IVisualHost" red, saying it can't find those.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.PNG" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/49900i0653D6AAFB08A103/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error.PNG" alt="Error.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I have copied the dependencies from the package.json on github into the package.json of my project and installed them. I also added all the dependencies into the pbiviz.json and tsconfig.json.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;When I download the project from github and run it it works, without being underlined.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;What am I missing?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;UPDATE: The problem was that I didn't specify the barChart.ts file in the tsconfig.json.&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="2"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FIx.PNG" style="width: 541px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/49914i86F16C91F2E273B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="FIx.PNG" alt="FIx.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:04:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Visual-Studio-Code-cannot-find-VisualUpdateOptions/m-p/211279#M6668</guid>
      <dc:creator>ConnectedRoman</dc:creator>
      <dc:date>2017-07-13T13:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio Code cannot find VisualUpdateOptions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Visual-Studio-Code-cannot-find-VisualUpdateOptions/m-p/211600#M6676</link>
      <description>&lt;P&gt;Hi ConnectedRoman,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I see from the code you provided, it seems &lt;STRONG&gt;Visual Studio Code&lt;/STRONG&gt;&amp;nbsp;[using pbiviz new ... ] has generated a &lt;STRONG&gt;v1.7.0&lt;/STRONG&gt; version while the sample demo&amp;nbsp;you're refering to was built in an earlier &lt;STRONG&gt;v1.5.0&lt;/STRONG&gt; version. So if you use any portion of the&amp;nbsp;sample demo &lt;STRONG&gt;"AS-IS"&lt;/STRONG&gt; - particularly &lt;STRONG&gt;pbiviz.json&amp;nbsp;&lt;/STRONG&gt;or &lt;STRONG&gt;tsconfig.son&lt;/STRONG&gt;&amp;nbsp;this may generate conflicts with your version&amp;nbsp;some point and may be the reason you see the error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So in order to avoid conflict and use demo code sample "AS-IS" you'll either have the choice to import a &lt;STRONG&gt;v1.5.0&lt;/STRONG&gt; code version in your app, under the &lt;STRONG&gt;.api&lt;/STRONG&gt; folder&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="apifolder.png" style="width: 264px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/49993i6AFF444B2A412A55/image-size/large?v=v2&amp;amp;px=999" role="button" title="apifolder.png" alt="apifolder.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;or keep your existing &lt;STRONG&gt;v1.7.0&lt;/STRONG&gt; version&amp;nbsp;and make a double-check to make sure any piece of code you may have borrowed from demo sample is pointing to the right version, especially &lt;STRONG&gt;pbiviz.json&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pbiviz.png" style="width: 537px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/49996iD093EDE4EA007458/image-size/large?v=v2&amp;amp;px=999" role="button" title="pbiviz.png" alt="pbiviz.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and &lt;STRONG&gt;tsconfig.json&lt;/STRONG&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tsconfig.png" style="width: 600px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/49997iBDB4F380FB2C39EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="tsconfig.png" alt="tsconfig.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 21:19:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Visual-Studio-Code-cannot-find-VisualUpdateOptions/m-p/211600#M6676</guid>
      <dc:creator>MawashiKid</dc:creator>
      <dc:date>2017-07-13T21:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio Code cannot find VisualUpdateOptions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Visual-Studio-Code-cannot-find-VisualUpdateOptions/m-p/211911#M6692</link>
      <description>&lt;P&gt;Thank you very much for your answer, that's something I didn't consider.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem was fixed when I added the barChart.ts to the tsconfig.json "files" member. I missed that I have to add everything to that file, as I'm pretty new to TypeScript.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 08:29:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Visual-Studio-Code-cannot-find-VisualUpdateOptions/m-p/211911#M6692</guid>
      <dc:creator>ConnectedRoman</dc:creator>
      <dc:date>2017-07-14T08:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio Code cannot find VisualUpdateOptions</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Visual-Studio-Code-cannot-find-VisualUpdateOptions/m-p/211946#M6693</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/35915"&gt;@ConnectedRoman&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad to&amp;nbsp;hear that you've solved this&amp;nbsp;problem. You may help mark it as answer. Your contribution is highly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 09:04:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Visual-Studio-Code-cannot-find-VisualUpdateOptions/m-p/211946#M6693</guid>
      <dc:creator>v-chuncz-msft</dc:creator>
      <dc:date>2017-07-14T09:04:52Z</dc:date>
    </item>
  </channel>
</rss>

