<?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 System import error: Error: (SystemJS) esri_mods_1.Map is not a function in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/system-import-error-error-systemjs-esri-mods-1-map/m-p/74340#M6753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to import arcgis-js-api 3.18 in my project which created as Asp.Net Core empty project. I am using angular2 with typescript in my project. Also want to add and use arcgis-js-api 3.18 but i am having an error like "System import error: Error: (SystemJS) esri_mods_1.Map is not a function". The details at the below and please help me. I can use arcgis-js-api 4.1 version as successfuly but with 3.18 i am having trouble&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already added "esriSystem.js" and "arcgis-js-api 3.18 version" referenced in my index.html&lt;/P&gt;&lt;P&gt;this is the my esri modules which are i am trying to load&amp;nbsp;&lt;/P&gt;&lt;P&gt;(function (window) {&lt;BR /&gt; window.esriLoadConfig = {&lt;BR /&gt; modules: [&lt;BR /&gt; 'esri/map',&lt;BR /&gt; "esri/layers/MapImageLayer"&lt;BR /&gt; ]&lt;BR /&gt; };&lt;BR /&gt;}(window))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have olsa esri-mod.d.ts file and content of it at the below&lt;/P&gt;&lt;P&gt;/// &amp;lt;reference path="../../node_modules/@types/arcgis-js-api/index.d.ts" /&amp;gt;&lt;BR /&gt;declare module "esri-mods" {&lt;BR /&gt; export import Map = require("esri/map");&lt;/P&gt;&lt;P&gt;export import MapImageLayer = require("esri/layers/MapImageLayer");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;in my main.ts file i am using these modules like&amp;nbsp;&lt;/P&gt;&lt;P&gt;/// &amp;lt;reference path="../../typings/index.d.ts" /&amp;gt;&lt;/P&gt;&lt;P&gt;import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';&lt;BR /&gt;import { AppModule } from './app.module';&lt;/P&gt;&lt;P&gt;import { Map } from 'esri-mods';&lt;/P&gt;&lt;P&gt;const platform = platformBrowserDynamic();&lt;/P&gt;&lt;P&gt;platform.bootstrapModule(AppModule);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;var mymap = new Map("map");//error&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i &amp;nbsp;build my project is succesfully. But at the run time i am getting the error when&amp;nbsp;bold-italic line&amp;nbsp;is being&amp;nbsp;process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is also error message in chrome console window&lt;/P&gt;&lt;P&gt;System import error: Error: (SystemJS) esri_mods_1.Map is not a function&lt;BR /&gt; TypeError: esri_mods_1.Map is not a function&lt;BR /&gt;&lt;SPAN&gt; at Object.eval (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A51032%2Fapp%2Fmain.js%3A8%3A13" rel="nofollow" target="_blank"&gt;http://localhost:51032/app/main.js:8:13&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at eval (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A51032%2Fapp%2Fmain.js%3A13%3A4" rel="nofollow" target="_blank"&gt;http://localhost:51032/app/main.js:13:4&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at eval (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A51032%2Fapp%2Fmain.js%3A14%3A3" rel="nofollow" target="_blank"&gt;http://localhost:51032/app/main.js:14:3&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt; at eval (native)&lt;BR /&gt;&lt;SPAN&gt; Evaluating &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A51032%2Fapp%2Fmain.js" rel="nofollow" target="_blank"&gt;http://localhost:51032/app/main.js&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; Error loading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A51032%2Fapp%2Fmain.js" rel="nofollow" target="_blank"&gt;http://localhost:51032/app/main.js&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2016 19:00:47 GMT</pubDate>
    <dc:creator>mehmetyildiz</dc:creator>
    <dc:date>2016-11-16T19:00:47Z</dc:date>
    <item>
      <title>System import error: Error: (SystemJS) esri_mods_1.Map is not a function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/system-import-error-error-systemjs-esri-mods-1-map/m-p/74340#M6753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to import arcgis-js-api 3.18 in my project which created as Asp.Net Core empty project. I am using angular2 with typescript in my project. Also want to add and use arcgis-js-api 3.18 but i am having an error like "System import error: Error: (SystemJS) esri_mods_1.Map is not a function". The details at the below and please help me. I can use arcgis-js-api 4.1 version as successfuly but with 3.18 i am having trouble&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already added "esriSystem.js" and "arcgis-js-api 3.18 version" referenced in my index.html&lt;/P&gt;&lt;P&gt;this is the my esri modules which are i am trying to load&amp;nbsp;&lt;/P&gt;&lt;P&gt;(function (window) {&lt;BR /&gt; window.esriLoadConfig = {&lt;BR /&gt; modules: [&lt;BR /&gt; 'esri/map',&lt;BR /&gt; "esri/layers/MapImageLayer"&lt;BR /&gt; ]&lt;BR /&gt; };&lt;BR /&gt;}(window))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have olsa esri-mod.d.ts file and content of it at the below&lt;/P&gt;&lt;P&gt;/// &amp;lt;reference path="../../node_modules/@types/arcgis-js-api/index.d.ts" /&amp;gt;&lt;BR /&gt;declare module "esri-mods" {&lt;BR /&gt; export import Map = require("esri/map");&lt;/P&gt;&lt;P&gt;export import MapImageLayer = require("esri/layers/MapImageLayer");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;in my main.ts file i am using these modules like&amp;nbsp;&lt;/P&gt;&lt;P&gt;/// &amp;lt;reference path="../../typings/index.d.ts" /&amp;gt;&lt;/P&gt;&lt;P&gt;import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';&lt;BR /&gt;import { AppModule } from './app.module';&lt;/P&gt;&lt;P&gt;import { Map } from 'esri-mods';&lt;/P&gt;&lt;P&gt;const platform = platformBrowserDynamic();&lt;/P&gt;&lt;P&gt;platform.bootstrapModule(AppModule);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;var mymap = new Map("map");//error&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i &amp;nbsp;build my project is succesfully. But at the run time i am getting the error when&amp;nbsp;bold-italic line&amp;nbsp;is being&amp;nbsp;process&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is also error message in chrome console window&lt;/P&gt;&lt;P&gt;System import error: Error: (SystemJS) esri_mods_1.Map is not a function&lt;BR /&gt; TypeError: esri_mods_1.Map is not a function&lt;BR /&gt;&lt;SPAN&gt; at Object.eval (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A51032%2Fapp%2Fmain.js%3A8%3A13" rel="nofollow" target="_blank"&gt;http://localhost:51032/app/main.js:8:13&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at eval (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A51032%2Fapp%2Fmain.js%3A13%3A4" rel="nofollow" target="_blank"&gt;http://localhost:51032/app/main.js:13:4&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at eval (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A51032%2Fapp%2Fmain.js%3A14%3A3" rel="nofollow" target="_blank"&gt;http://localhost:51032/app/main.js:14:3&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt; at eval (native)&lt;BR /&gt;&lt;SPAN&gt; Evaluating &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A51032%2Fapp%2Fmain.js" rel="nofollow" target="_blank"&gt;http://localhost:51032/app/main.js&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; Error loading &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Flocalhost%3A51032%2Fapp%2Fmain.js" rel="nofollow" target="_blank"&gt;http://localhost:51032/app/main.js&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2016 19:00:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/system-import-error-error-systemjs-esri-mods-1-map/m-p/74340#M6753</guid>
      <dc:creator>mehmetyildiz</dc:creator>
      <dc:date>2016-11-16T19:00:47Z</dc:date>
    </item>
  </channel>
</rss>

