<?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 Re: Source maps for html dahsboards (create-react-app) in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449026#M29527</link>
    <description>&lt;P&gt;Unfortunately I didn't find a way yet.&lt;/P&gt;

&lt;P&gt;We have a rather interactive app, so we just used rxjs for polling and fire oneshot queries without using the sdk. I'm happy to share that with you. There are no pms here?&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2019 09:13:43 GMT</pubDate>
    <dc:creator>aprummer</dc:creator>
    <dc:date>2019-08-30T09:13:43Z</dc:date>
    <item>
      <title>Source maps for html dahsboards (create-react-app)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449022#M29523</link>
      <description>&lt;P&gt;we are using create-react-app to develop our HTML-Dashboards. I guess my source maps are not working, because all assets a have the following code pre-pended:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;// Translations for en_US
i18n_register({"catalog": {}, "plural": function(n) { return n == 1 ? 0 : 1; }});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;UL&gt;
&lt;LI&gt;Has someone the same problem?&lt;/LI&gt;
&lt;LI&gt;Can you load the assets without this prefix?&lt;/LI&gt;
&lt;LI&gt;Any quick way to configure create-react-app/webpack to have matching source maps again?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 13 Aug 2019 10:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449022#M29523</guid>
      <dc:creator>aprummer</dc:creator>
      <dc:date>2019-08-13T10:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Source maps for html dahsboards (create-react-app)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449023#M29524</link>
      <description>&lt;P&gt;@aprummer have you checked out Splunk Developer Cloud which was announced as Splunk Next Beta last year during .Conf? It is based on react-ui : &lt;A href="https://www.splunk.com/blog/2018/10/16/splunk-dashboards-ui-in-the-new-splunk-developer-cloud-sdc-beta.html"&gt;https://www.splunk.com/blog/2018/10/16/splunk-dashboards-ui-in-the-new-splunk-developer-cloud-sdc-beta.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 10:29:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449023#M29524</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-08-13T10:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: Source maps for html dahsboards (create-react-app)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449024#M29525</link>
      <description>&lt;P&gt;Thanks for the link, but I think that doesn't help me.&lt;/P&gt;

&lt;P&gt;I use the bundler to create the js file, so the source maps wouldn't work anyway.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 12:13:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449024#M29525</guid>
      <dc:creator>aprummer</dc:creator>
      <dc:date>2019-08-13T12:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Source maps for html dahsboards (create-react-app)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449025#M29526</link>
      <description>&lt;P&gt;I'm also interested in developing dashboards using create-react-app (for Splunk enterprise). Would you mind sharing some basic information for how you're doing this? (e.g. how do you go about importing the Splunkjs libraries and configuring them within your files, etc.). Also, if you were able to resolve your issue, would you mind posting that too? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:56:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449025#M29526</guid>
      <dc:creator>pgoldweic</dc:creator>
      <dc:date>2019-08-29T16:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Source maps for html dahsboards (create-react-app)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449026#M29527</link>
      <description>&lt;P&gt;Unfortunately I didn't find a way yet.&lt;/P&gt;

&lt;P&gt;We have a rather interactive app, so we just used rxjs for polling and fire oneshot queries without using the sdk. I'm happy to share that with you. There are no pms here?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 09:13:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449026#M29527</guid>
      <dc:creator>aprummer</dc:creator>
      <dc:date>2019-08-30T09:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Source maps for html dahsboards (create-react-app)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449027#M29528</link>
      <description>&lt;P&gt;I see. I'm not familiar with rxjs so it probably wouldn't help much if you shared at this time. But thanks! BTW, just in case you didn't see it, here's the only other post I found that mentions the use of  Splunk sdks with react: &lt;A href="https://answers.splunk.com/answers/526322/how-to-use-reactjs-component-in-splunk-dashboard.html"&gt;https://answers.splunk.com/answers/526322/how-to-use-reactjs-component-in-splunk-dashboard.html&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 18:02:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449027#M29528</guid>
      <dc:creator>pgoldweic</dc:creator>
      <dc:date>2019-08-30T18:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Source maps for html dahsboards (create-react-app)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449028#M29529</link>
      <description>&lt;P&gt;I didn't find any way to stop splunk from injecting those lines.&lt;/P&gt;

&lt;P&gt;I fixed my problem with injecting 6 empty lines (on my instance it where six lines, which got injected) to the generated source-map.&lt;/P&gt;

&lt;P&gt;see &lt;A href="https://gist.github.com/prumand/73ae1a01d22029d7969ce8a5dcaa453d"&gt;https://gist.github.com/prumand/73ae1a01d22029d7969ce8a5dcaa453d&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 11:58:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Source-maps-for-html-dahsboards-create-react-app/m-p/449028#M29529</guid>
      <dc:creator>aprummer</dc:creator>
      <dc:date>2020-02-28T11:58:15Z</dc:date>
    </item>
  </channel>
</rss>

