<?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 How to use bootstrap in Custom Visual? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2779643#M38737</link>
    <description>&lt;P&gt;I was trying to use the bootstrap for custom visual, but getting some error, the steps i did are&lt;/P&gt;&lt;P&gt;1- npm install bootstrap&lt;/P&gt;&lt;P&gt;2- using this line in visual.less&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;@import&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;less&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;"../node_modules/bootstrap/dist/css/bootstrap.css"&lt;/SPAN&gt;&lt;SPAN&gt;;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But I am getting the error on compilation.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;The Error is&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;ERROR in ./style/visual.less&lt;BR /&gt;Module build failed (from ../../Users/VCHA/AppData/Roaming/npm/node_modules/powerbi-visuals-tools/node_modules/mini-css-extract-plugin/dist/loader.js):&lt;BR /&gt;ModuleBuildError: Module build failed (from ../../Users/VCHA/AppData/Roaming/npm/node_modules/powerbi-visuals-tools/node_modules/less-loader/dist/cjs.js):&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--bs-btn-padding-y: 0.375rem;&lt;BR /&gt;--bs-btn-font-family: ;&lt;BR /&gt;^&lt;BR /&gt;Unrecognised input.............&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how i can use the bootstrap in custom visual?&lt;/P&gt;&lt;P&gt;----Screenshot---&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 20 Sep 2022 07:12:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-09-20T07:12:42Z</dc:date>
    <item>
      <title>How to use bootstrap in Custom Visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2779643#M38737</link>
      <description>&lt;P&gt;I was trying to use the bootstrap for custom visual, but getting some error, the steps i did are&lt;/P&gt;&lt;P&gt;1- npm install bootstrap&lt;/P&gt;&lt;P&gt;2- using this line in visual.less&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;@import&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;less&lt;/SPAN&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;SPAN&gt;"../node_modules/bootstrap/dist/css/bootstrap.css"&lt;/SPAN&gt;&lt;SPAN&gt;;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But I am getting the error on compilation.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;The Error is&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;ERROR in ./style/visual.less&lt;BR /&gt;Module build failed (from ../../Users/VCHA/AppData/Roaming/npm/node_modules/powerbi-visuals-tools/node_modules/mini-css-extract-plugin/dist/loader.js):&lt;BR /&gt;ModuleBuildError: Module build failed (from ../../Users/VCHA/AppData/Roaming/npm/node_modules/powerbi-visuals-tools/node_modules/less-loader/dist/cjs.js):&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;--bs-btn-padding-y: 0.375rem;&lt;BR /&gt;--bs-btn-font-family: ;&lt;BR /&gt;^&lt;BR /&gt;Unrecognised input.............&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know how i can use the bootstrap in custom visual?&lt;/P&gt;&lt;P&gt;----Screenshot---&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Sep 2022 07:12:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2779643#M38737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-20T07:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use bootstrap in Custom Visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2779768#M38740</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="397" data-lia-user-login="dm-p" class="lia-mention lia-mention-user"&gt;dm-p&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="118918" data-lia-user-login="Hariharan_R" class="lia-mention lia-mention-user"&gt;Hariharan_R&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="11211" data-lia-user-login="ibarrau" class="lia-mention lia-mention-user"&gt;ibarrau&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 07:45:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2779768#M38740</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-20T07:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use bootstrap in Custom Visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2779852#M38742</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Add&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;bootstrap.css&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;as an import directly in&amp;nbsp;your&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;visual.ts&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;(I usually place it underneath the&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;visual.less&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;import). Bootstrap does not work with less.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 08:09:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2779852#M38742</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2022-09-20T08:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use bootstrap in Custom Visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2779867#M38743</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Same issue is coming up even if i put the import in visual.ts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 08:14:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2779867#M38743</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-20T08:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use bootstrap in Custom Visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2779936#M38744</link>
      <description>&lt;P&gt;Apologies - looks like Bootstrap 5 has some breaking changes from 4 (I haven't used it for a while in custom visuals).&lt;/P&gt;
&lt;P&gt;It should work if you don't want to use less mixins (i.e. omit the &lt;FONT face="courier new,courier"&gt;(less)&lt;/FONT&gt; prefix). Using this in my &lt;FONT face="courier new,courier"&gt;visual.less&lt;/FONT&gt; works for me:&lt;/P&gt;
&lt;LI-CODE lang="css"&gt;@import "~bootstrap/dist/css/bootstrap.css";&lt;/LI-CODE&gt;
&lt;P&gt;This seems to compile through webpack:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;And, the classes are availabe in my visual's DOM:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Hopefully this should work for you too.&lt;/P&gt;
&lt;P&gt;Good luck,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 08:28:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2779936#M38744</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2022-09-20T08:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use bootstrap in Custom Visual?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2785362#M38800</link>
      <description>&lt;P&gt;Hey&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;- did this approach work for you?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 00:25:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-use-bootstrap-in-Custom-Visual/m-p/2785362#M38800</guid>
      <dc:creator>dm-p</dc:creator>
      <dc:date>2022-09-22T00:25:47Z</dc:date>
    </item>
  </channel>
</rss>

