<?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 Thanks for the feedback, I'll in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/If-using-require-js-Simulate-mode-will-not-work/m-p/1084429#M62899</link>
    <description>&lt;P&gt;Thanks for the feedback, I'll let the appropriate engineer know.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2016 22:25:08 GMT</pubDate>
    <dc:creator>PaulF_IntelCorp</dc:creator>
    <dc:date>2016-08-04T22:25:08Z</dc:date>
    <item>
      <title>If using require.js, Simulate mode will not work</title>
      <link>https://community.intel.com/t5/Software-Archive/If-using-require-js-Simulate-mode-will-not-work/m-p/1084428#M62898</link>
      <description>&lt;P&gt;We use require.js to manage javascript code modules, and we are no longer able to use the XDK in Simulate mode. &amp;nbsp;The simulate feature uses a javascript file called app-host.js which implements its own 'require' object that lives in the global namespace. &amp;nbsp;As a result, any calls to require.js will fail.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 17:33:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/If-using-require-js-Simulate-mode-will-not-work/m-p/1084428#M62898</guid>
      <dc:creator>CAJazzer</dc:creator>
      <dc:date>2016-08-04T17:33:36Z</dc:date>
    </item>
    <item>
      <title>Thanks for the feedback, I'll</title>
      <link>https://community.intel.com/t5/Software-Archive/If-using-require-js-Simulate-mode-will-not-work/m-p/1084429#M62899</link>
      <description>&lt;P&gt;Thanks for the feedback, I'll let the appropriate engineer know.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 22:25:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/If-using-require-js-Simulate-mode-will-not-work/m-p/1084429#M62899</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-08-04T22:25:08Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/If-using-require-js-Simulate-mode-will-not-work/m-p/1084430#M62900</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Thanks for reporting this. We are working on releasing a hotfix soon that includes the fix for this issue. But in the meantime, as a workaround you can do the following in your current installation of Intel XDK to patch it and continue working:&lt;/P&gt;

&lt;P&gt;1 - Make sure that the XDK is closed, and open the file &lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;components/server/simulator/cordova-simulate/src/server/sim-files.js&amp;nbsp;&lt;/SPAN&gt;in an editor. According to your operating system, you can find that file in the following path:&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;MAC:&amp;nbsp;&lt;SPAN class="s1"&gt;/Applications/Intel XDK.app/Contents/Resources/app.nw/&lt;/SPAN&gt;&lt;/LI&gt;
	&lt;LI&gt;Windows:&amp;nbsp;C:\Users\&amp;lt;your-user&amp;gt;\AppData\Local\Intel\XDK\xdk\&lt;/LI&gt;
	&lt;LI&gt;Linux:
		&lt;UL&gt;
			&lt;LI&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Installed as root: /opt/intel/XDK/xdk/&lt;/SPAN&gt;&lt;/LI&gt;
			&lt;LI&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Installed as user: ~/intel/XDK/xdk/&lt;/SPAN&gt;&lt;/LI&gt;
		&lt;/UL&gt;
	&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;2 - Replace the line 142, that looks like this,&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;var b = browserify({ paths: getBrowserifySearchPaths(hostType), debug: false });&lt;/PRE&gt;

&lt;P&gt;with the following snippet:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;var b = browserify({
    paths: getBrowserifySearchPaths(hostType),
    debug: false,
    exports: false, // needed to prevent browserify to override hasExports option by set it to true
    hasExports: false
});&lt;/PRE&gt;

&lt;P&gt;3 - Save the changes, and start the XDK.&lt;/P&gt;

&lt;P&gt;This should fix the issue. Please, let us know if you have any trouble on patching it, and if it works for you.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2016 18:40:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/If-using-require-js-Simulate-mode-will-not-work/m-p/1084430#M62900</guid>
      <dc:creator>Albertina_D_Intel</dc:creator>
      <dc:date>2016-08-11T18:40:51Z</dc:date>
    </item>
    <item>
      <title>Confirmed.  This patch worked</title>
      <link>https://community.intel.com/t5/Software-Archive/If-using-require-js-Simulate-mode-will-not-work/m-p/1084431#M62901</link>
      <description>&lt;P&gt;Confirmed. &amp;nbsp;This patch worked perfectly. &amp;nbsp;Many thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2016 19:33:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/If-using-require-js-Simulate-mode-will-not-work/m-p/1084431#M62901</guid>
      <dc:creator>CAJazzer</dc:creator>
      <dc:date>2016-08-13T19:33:25Z</dc:date>
    </item>
  </channel>
</rss>

