<?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 help configuring Intern w/ ArcGIS API for JavaScript in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-configuring-intern-w-arcgis-api-for/m-p/261766#M24264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to configure Intern to do some unit testing on some legacy ArcGIS Javascript projects.&amp;nbsp; I'm having trouble understanding the "loader" configuration in intern.js, e.g. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loaders: {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'host-node': 'bower_components/dojo/dojo',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'host-browser': 'node_modules/dojo/dojo.js'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working off examples from &lt;A href="https://github.com/theintern/intern-tutorial"&gt;SitePen&lt;/A&gt;​, &lt;A href="https://github.com/DavidSpriggs/intern-tutorial-esri-jsapi"&gt;David Spriggs&lt;/A&gt;​, and Rene's &lt;A href="https://github.com/odoe/generator-arcgis-js-app"&gt;Yeoman generator&lt;/A&gt;​, but don't seem to be able to get all the pieces to work together.&amp;nbsp; My objective is pretty simple: get the SitePen tutorial working using the Esri-version of dojo provided by Bower.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really understand why the "loaders" configuration is required to provide a dojo other than the default but that's done in both the Esri-related examples.&amp;nbsp; In my &lt;A href="https://github.com/jccartwright/hello-intern"&gt;case&lt;/A&gt;​ when I configure the loaders config as above, I get the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error: Cannot find module 'bower_components/dojo/dojo'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Function.Module._resolveFilename&amp;nbsp; &amp;lt;module.js:339:15&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Function.require.resolve&amp;nbsp; &amp;lt;internal/module.js:23:19&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &amp;lt;node_modules/intern/lib/executors/PreExecutor.js:437:32&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at new Promise&amp;nbsp; &amp;lt;node_modules/intern/node_modules/dojo/Promise.ts:411:3&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at PreExecutor.swapLoader&amp;nbsp; &amp;lt;node_modules/intern/lib/executors/PreExecutor.js:428:11&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at swapLoader&amp;nbsp; &amp;lt;node_modules/intern/lib/executors/PreExecutor.js:389:17&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &amp;lt;node_modules/intern/node_modules/dojo/Promise.ts:393:15&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at runCallbacks&amp;nbsp; &amp;lt;node_modules/intern/node_modules/dojo/Promise.ts:11:11&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &amp;lt;node_modules/intern/node_modules/dojo/Promise.ts:317:4&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at run&amp;nbsp; &amp;lt;node_modules/intern/node_modules/dojo/Promise.ts:237:7&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a bower_components/dojo/dojo.js file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or clarification would be much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--john&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jan 2016 00:59:47 GMT</pubDate>
    <dc:creator>JohnCartwright</dc:creator>
    <dc:date>2016-01-25T00:59:47Z</dc:date>
    <item>
      <title>help configuring Intern w/ ArcGIS API for JavaScript</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-configuring-intern-w-arcgis-api-for/m-p/261766#M24264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to configure Intern to do some unit testing on some legacy ArcGIS Javascript projects.&amp;nbsp; I'm having trouble understanding the "loader" configuration in intern.js, e.g. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; loaders: {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'host-node': 'bower_components/dojo/dojo',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'host-browser': 'node_modules/dojo/dojo.js'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working off examples from &lt;A href="https://github.com/theintern/intern-tutorial"&gt;SitePen&lt;/A&gt;​, &lt;A href="https://github.com/DavidSpriggs/intern-tutorial-esri-jsapi"&gt;David Spriggs&lt;/A&gt;​, and Rene's &lt;A href="https://github.com/odoe/generator-arcgis-js-app"&gt;Yeoman generator&lt;/A&gt;​, but don't seem to be able to get all the pieces to work together.&amp;nbsp; My objective is pretty simple: get the SitePen tutorial working using the Esri-version of dojo provided by Bower.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really understand why the "loaders" configuration is required to provide a dojo other than the default but that's done in both the Esri-related examples.&amp;nbsp; In my &lt;A href="https://github.com/jccartwright/hello-intern"&gt;case&lt;/A&gt;​ when I configure the loaders config as above, I get the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error: Cannot find module 'bower_components/dojo/dojo'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Function.Module._resolveFilename&amp;nbsp; &amp;lt;module.js:339:15&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Function.require.resolve&amp;nbsp; &amp;lt;internal/module.js:23:19&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &amp;lt;node_modules/intern/lib/executors/PreExecutor.js:437:32&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at new Promise&amp;nbsp; &amp;lt;node_modules/intern/node_modules/dojo/Promise.ts:411:3&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at PreExecutor.swapLoader&amp;nbsp; &amp;lt;node_modules/intern/lib/executors/PreExecutor.js:428:11&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at swapLoader&amp;nbsp; &amp;lt;node_modules/intern/lib/executors/PreExecutor.js:389:17&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &amp;lt;node_modules/intern/node_modules/dojo/Promise.ts:393:15&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at runCallbacks&amp;nbsp; &amp;lt;node_modules/intern/node_modules/dojo/Promise.ts:11:11&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at &amp;lt;node_modules/intern/node_modules/dojo/Promise.ts:317:4&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; at run&amp;nbsp; &amp;lt;node_modules/intern/node_modules/dojo/Promise.ts:237:7&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a bower_components/dojo/dojo.js file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help or clarification would be much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--john&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 00:59:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/help-configuring-intern-w-arcgis-api-for/m-p/261766#M24264</guid>
      <dc:creator>JohnCartwright</dc:creator>
      <dc:date>2016-01-25T00:59:47Z</dc:date>
    </item>
  </channel>
</rss>

