<?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: parser.parse() error in .js file in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/parser-parse-error-in-js-file/m-p/67211#M5918</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using AMD style, check if the module aliases match the dependency list. Take below code as an example. module1 is the alias of path/to/mod1, module2 for path/to/mod2, and so on. You can skip some dependencies not assigning them aliases, like path/to/mod4 in below, but all the skipped modules must be at the end of the dependency list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;define(["path/to/mod1", "path/to/mod2", "path/to/mod3", "path/to/mod4"], function(module1, module2, module3) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // body content&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More than likely, in your map.js, the position of parser in the alias list does not match the position of module dojo/parser in the dependency list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, please post map.js code for further inspection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Nov 2013 01:43:17 GMT</pubDate>
    <dc:creator>JasonZou</dc:creator>
    <dc:date>2013-11-08T01:43:17Z</dc:date>
    <item>
      <title>parser.parse() error in .js file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/parser-parse-error-in-js-file/m-p/67210#M5917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting the following error when calling parser.parse(); in map.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'parse'[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, if I run the code from map.js in the HTML file, it works perfectly. Do I have to call parser.parse(); differently when using .js files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 20:04:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/parser-parse-error-in-js-file/m-p/67210#M5917</guid>
      <dc:creator>MatthewBrown1</dc:creator>
      <dc:date>2013-11-07T20:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: parser.parse() error in .js file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/parser-parse-error-in-js-file/m-p/67211#M5918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using AMD style, check if the module aliases match the dependency list. Take below code as an example. module1 is the alias of path/to/mod1, module2 for path/to/mod2, and so on. You can skip some dependencies not assigning them aliases, like path/to/mod4 in below, but all the skipped modules must be at the end of the dependency list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;define(["path/to/mod1", "path/to/mod2", "path/to/mod3", "path/to/mod4"], function(module1, module2, module3) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // body content&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More than likely, in your map.js, the position of parser in the alias list does not match the position of module dojo/parser in the dependency list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, please post map.js code for further inspection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 01:43:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/parser-parse-error-in-js-file/m-p/67211#M5918</guid>
      <dc:creator>JasonZou</dc:creator>
      <dc:date>2013-11-08T01:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: parser.parse() error in .js file</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/parser-parse-error-in-js-file/m-p/67212#M5919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jason,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I checked the AMD require format, and it was fine (I did a copy and paste into the HTML and it worked). I've also been using Derek's AMD require generator to check. I figured I'd made a noob mistake like that but it seems like the problem is something in my IDE - VS 2012. Not sure what happened, but after closing down the solution for a while (I opened it up to respond to your post), the original code worked. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I first hit the error I cleared the browser cache for Chrome and IE, killed IIS Express, and rebuilt the solution with no change.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are supposed to use VS and TFS, but perhaps I should perform my prototyping in Aptana? Any folks out there using VS for the JS API?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Nov 2013 02:21:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/parser-parse-error-in-js-file/m-p/67212#M5919</guid>
      <dc:creator>MatthewBrown1</dc:creator>
      <dc:date>2013-11-08T02:21:45Z</dc:date>
    </item>
  </channel>
</rss>

