<?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: Error while loading loading map. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1048457#M72614</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;, I don't have a separate repo for the mapping component. Actually, I followed the &lt;A title="jsapi-create-react-app" href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app" target="_blank" rel="noopener"&gt;sample&lt;/A&gt; provided by the ESRI and the example code by the gogo theme.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For developmental purpose in '&lt;SPAN&gt;SalesChartCard.js&lt;/SPAN&gt;' file I'm trying to implement the ESRI JS Map.&lt;/P&gt;&lt;P&gt;Run 'npm start' the application loads at&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;'http://localhost:3000/' &lt;/LI-CODE&gt;&lt;P&gt;after redirect to&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;'http://localhost:3000/app/dashboards/default'&lt;/LI-CODE&gt;&lt;P&gt;then the application breaks and starts to give errors.&lt;/P&gt;&lt;P&gt;I have adopted the changes you mentioned but still I'm facing the same issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly look into this&amp;nbsp;&lt;A title="gogo-react" href="https://github.com/kishorvalgen/gogo-react" target="_blank" rel="noopener"&gt;repo&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Apr 2021 03:55:48 GMT</pubDate>
    <dc:creator>Valgenmap</dc:creator>
    <dc:date>2021-04-19T03:55:48Z</dc:date>
    <item>
      <title>Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1046867#M72522</link>
      <description>&lt;P&gt;I'm using React [^17.0.1] and arcgis-js-api [^4.18.1]&amp;nbsp; for the app,&lt;/P&gt;&lt;P&gt;After 'npm start' I'm receiving the below errors,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[esri.widgets.Widget] widget-intl:locale-error esri.widgets.Attribution TypeError: t is not a constructor

[esri.widgets.Widget] widget-intl:locale-error esri.widgets.Zoom TypeError: t is not a constructor

[esri.widgets.Widget] widget-intl:locale-error esri.widgets.Popup TypeError: t is not a constructor

[esri.Basemap] #load() Failed to load basemap (title: 'Basemap', id: 'gray-vector') TypeError: t is not a constructor

Zoom.js:5 Uncaught (in promise) TypeError: Cannot read property 'zoomIn' of null&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import React, { useState, useRef, useEffect } from 'react';
import { Card, CardBody, CardTitle } from 'reactstrap';
import ArcGISMap from '@arcgis/core/Map';
import MapView from '@arcgis/core/views/MapView';
import esriConfig from '@arcgis/core/config';

import '../../assets/css/map.css';

const SalesChartCard = () =&amp;gt; {
  esriConfig.assetsPath = '../node_modules/@arcgis/core/assets';

  const mapDiv = useRef(null);

  useEffect(() =&amp;gt; {
    if (mapDiv.current) {
      /**
       * Initialize application
       */
      const map = new ArcGISMap({
        basemap: 'gray-vector',
      });

      /* eslint-disable no-unused-vars */
      const view = new MapView({
        map,
        container: mapDiv.current,
        extent: {
          spatialReference: {
            wkid: 102100,
          },
          xmax: -13581772,
          xmin: -13584170,
          ymax: 4436367,
          ymin: 4435053,
        },
      });
      /* eslint-enable no-unused-vars */
    }
  }, []);

  const [isInFullScreen, setIsInFullScreen] = useState(false);

  const isInFullScreenFn = () =&amp;gt; {
    return (
      (document.fullscreenElement &amp;amp;&amp;amp; document.fullscreenElement !== null) ||
      (document.webkitFullscreenElement &amp;amp;&amp;amp;
        document.webkitFullscreenElement !== null) ||
      (document.mozFullScreenElement &amp;amp;&amp;amp;
        document.mozFullScreenElement !== null) ||
      (document.msFullscreenElement &amp;amp;&amp;amp; document.msFullscreenElement !== null)
    );
  };

  const toggleFullScreen = () =&amp;gt; {
    const isFS = isInFullScreenFn();

    const docElm = document.documentElement;
    if (!isFS) {
      if (docElm.requestFullscreen) {
        docElm.requestFullscreen();
      } else if (docElm.mozRequestFullScreen) {
        docElm.mozRequestFullScreen();
      } else if (docElm.webkitRequestFullScreen) {
        docElm.webkitRequestFullScreen();
      } else if (docElm.msRequestFullscreen) {
        docElm.msRequestFullscreen();
      }
    } else if (document.exitFullscreen) {
      document.exitFullscreen();
    } else if (document.webkitExitFullscreen) {
      document.webkitExitFullscreen();
    } else if (document.mozCancelFullScreen) {
      document.mozCancelFullScreen();
    } else if (document.msExitFullscreen) {
      document.msExitFullscreen();
    }
    setIsInFullScreen(!isFS);
  };

  return (
    &amp;lt;Card&amp;gt;
      &amp;lt;button
        className="position-absolute card-top-buttons header-icon btn btn-empty d-none d-sm-inline-block"
        type="button"
        id="fullScreenButton"
        onClick={toggleFullScreen}
      &amp;gt;
        {isInFullScreen ? (
          &amp;lt;i className="simple-icon-size-actual d-block" /&amp;gt;
        ) : (
          &amp;lt;i className="simple-icon-size-fullscreen d-block" /&amp;gt;
        )}
      &amp;lt;/button&amp;gt;
      &amp;lt;CardBody&amp;gt;
        &amp;lt;CardTitle&amp;gt;Map&amp;lt;/CardTitle&amp;gt;
        &amp;lt;div className="mapDiv" ref={mapDiv} /&amp;gt;
      &amp;lt;/CardBody&amp;gt;
    &amp;lt;/Card&amp;gt;
  );
};

export default SalesChartCard;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;package.json&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "lint": "eslint .",
    "lint:fix": "eslint . --fix",
    "precommit": "lint-staged",
    "copy": "ncp ./node_modules/@arcgis/core/assets ./public/assets",
    "postinstall": "npm run copy"
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the solution mentioned in this &lt;A title="Erros Occurred While Loading Widgets" href="https://community.esri.com/t5/arcgis-api-for-javascript/erros-occurred-while-loading-widgets/m-p/1024690#M71696" target="_blank" rel="noopener"&gt;post&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 13:21:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1046867#M72522</guid>
      <dc:creator>Valgenmap</dc:creator>
      <dc:date>2021-04-14T13:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1047231#M72538</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/248401"&gt;@Valgenmap&lt;/a&gt;&amp;nbsp;can you please share the entire package.json file? Are you using arcgis-js-api or @arcgis/core? Those are both JS API with the exact same functionality, but they use different module types. arcgis-js-api is AMD and&amp;nbsp;@arcgis/core is ES modules.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2021 19:34:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1047231#M72538</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-04-14T19:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1047250#M72541</link>
      <description>&lt;P&gt;I suspect you are using&amp;nbsp;@Anonymous User/core. If that's what's installed then you can try testing with the "next" version by running:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;npm i @ArcGis/core@next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And, then remove these two lines from package.json. That might fix the issue you are seeing:&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;    "copy": "ncp ./node_modules/@arcgis/core/assets ./public/assets",
    "postinstall": "npm run copy"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 14 Apr 2021 19:50:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1047250#M72541</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-04-14T19:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1047403#M72546</link>
      <description>&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my package.json&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "name": "gogo-react",
  "version": "5.3.0",
  "description": "Gogo - React Bootstrap 4 Admin Dashboard Template",
  "private": true,
  "dependencies": {
    "@arcgis/core": "^4.18.1",
    "@glidejs/glide": "^3.4.1",
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "availity-reactstrap-validation": "^2.7.0",
    "axios": "^0.21.1",
    "chart.js": "2.9.4",
    "classnames": "2.2.6",
    "firebase": "^8.2.2",
    "formik": "^2.2.6",
    "moment": "2.29.1",
    "mousetrap": "^1.6.5",
    "node-sass": "^4.14.1",
    "prop-types": "^15.7.2",
    "rc-slider": "^9.7.1",
    "rc-switch": "^3.2.2",
    "react": "^17.0.1",
    "react-albus": "^2.0.0",
    "react-autosuggest": "^10.1.0",
    "react-big-calendar": "^0.30.0",
    "react-circular-progressbar": "^2.0.3",
    "react-contextmenu": "^2.14.0",
    "react-datepicker": "^3.4.0",
    "react-dom": "^17.0.1",
    "react-dropzone-component": "^3.2.0",
    "react-google-maps": "^9.4.5",
    "react-headroom": "^3.1.0",
    "react-image-lightbox": "^5.1.1",
    "react-intl": "5.10.15",
    "react-lines-ellipsis": "^0.14.1",
    "react-perfect-scrollbar": "^1.5.8",
    "react-quill": "^1.3.5",
    "react-rater": "^5.1.1",
    "react-redux": "^7.2.2",
    "react-router-dom": "^5.2.0",
    "react-scripts": "^4.0.1",
    "react-scroll": "^1.8.1",
    "react-select": "^3.1.1",
    "react-sortablejs": "^6.0.0",
    "react-table": "7.6.3",
    "react-tagsinput": "^3.19.0",
    "react-transition-group": "^4.4.1",
    "react-yandex-maps": "^4.6.0",
    "reactstrap": "^8.8.1",
    "redux": "^4.0.5",
    "redux-saga": "^1.1.3",
    "sortablejs": "^1.13.0",
    "video.js": "^7.12.1",
    "web-vitals": "^1.1.0",
    "yup": "^0.32.8"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "lint": "eslint .",
    "lint:fix": "eslint . --fix",
    "precommit": "lint-staged",
    "copy": "ncp ./node_modules/@arcgis/core/assets ./public/assets",
    "postinstall": "npm run copy"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "src/.js": [
      "eslint --fix",
      "git add"
    ]
  },
  "browserslist": [
    "&amp;gt;0.2%",
    "not dead",
    "not ie &amp;lt;= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "ncp": "^2.0.0",
    "eslint": "^7.17.0",
    "eslint-config-airbnb": "^18.2.1",
    "eslint-config-prettier": "^7.1.0",
    "eslint-plugin-import": "^2.22.1",
    "eslint-plugin-jsx-a11y": "^6.4.1",
    "eslint-plugin-prettier": "^3.3.1",
    "eslint-plugin-react": "^7.22.0",
    "husky": "^4.3.7",
    "lint-staged": "^10.5.3",
    "prettier": "^2.2.1"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 03:42:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1047403#M72546</guid>
      <dc:creator>Valgenmap</dc:creator>
      <dc:date>2021-04-15T03:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1047410#M72547</link>
      <description>&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;I followed the suggestions mentioned by you, then I'm receiving the same errors including the unhandled rejection.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Error after applying changes" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/10949i400605B8692C776D/image-size/large?v=v2&amp;amp;px=999" role="button" title="error 1.PNG" alt="Error after applying changes" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Error after applying changes&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;package.json looks like this,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
  "name": "gogo-react",
  "version": "5.3.0",
  "description": "Gogo - React Bootstrap 4 Admin Dashboard Template",
  "private": true,
  "dependencies": {
    "@arcgis/core": "^4.19.0-next.20210407",
    "@glidejs/glide": "^3.4.1",
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "availity-reactstrap-validation": "^2.7.0",
    "axios": "^0.21.1",
    "chart.js": "2.9.4",
    "classnames": "2.2.6",
    "firebase": "^8.2.2",
    "formik": "^2.2.6",
    "moment": "2.29.1",
    "mousetrap": "^1.6.5",
    "node-sass": "^4.14.1",
    "prop-types": "^15.7.2",
    "rc-slider": "^9.7.1",
    "rc-switch": "^3.2.2",
    "react": "^17.0.1",
    "react-albus": "^2.0.0",
    "react-autosuggest": "^10.1.0",
    "react-big-calendar": "^0.30.0",
    "react-circular-progressbar": "^2.0.3",
    "react-contextmenu": "^2.14.0",
    "react-datepicker": "^3.4.0",
    "react-dom": "^17.0.1",
    "react-dropzone-component": "^3.2.0",
    "react-google-maps": "^9.4.5",
    "react-headroom": "^3.1.0",
    "react-image-lightbox": "^5.1.1",
    "react-intl": "5.10.15",
    "react-lines-ellipsis": "^0.14.1",
    "react-perfect-scrollbar": "^1.5.8",
    "react-quill": "^1.3.5",
    "react-rater": "^5.1.1",
    "react-redux": "^7.2.2",
    "react-router-dom": "^5.2.0",
    "react-scripts": "^4.0.1",
    "react-scroll": "^1.8.1",
    "react-select": "^3.1.1",
    "react-sortablejs": "^6.0.0",
    "react-table": "7.6.3",
    "react-tagsinput": "^3.19.0",
    "react-transition-group": "^4.4.1",
    "react-yandex-maps": "^4.6.0",
    "reactstrap": "^8.8.1",
    "redux": "^4.0.5",
    "redux-saga": "^1.1.3",
    "sortablejs": "^1.13.0",
    "video.js": "^7.12.1",
    "web-vitals": "^1.1.0",
    "yup": "^0.32.8"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "lint": "eslint .",
    "lint:fix": "eslint . --fix",
    "precommit": "lint-staged"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "src/.js": [
      "eslint --fix",
      "git add"
    ]
  },
  "browserslist": [
    "&amp;gt;0.2%",
    "not dead",
    "not ie &amp;lt;= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "ncp": "^2.0.0",
    "eslint": "^7.17.0",
    "eslint-config-airbnb": "^18.2.1",
    "eslint-config-prettier": "^7.1.0",
    "eslint-plugin-import": "^2.22.1",
    "eslint-plugin-jsx-a11y": "^6.4.1",
    "eslint-plugin-prettier": "^3.3.1",
    "eslint-plugin-react": "^7.22.0",
    "husky": "^4.3.7",
    "lint-staged": "^10.5.3",
    "prettier": "^2.2.1"
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SalesChartCard.js&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import React, { useRef, useEffect } from 'react';
import { Card, CardBody, CardTitle } from 'reactstrap';
import ArcGISMap from '@arcgis/core/Map';
import MapView from '@arcgis/core/views/MapView';
import esriConfig from '@arcgis/core/config';

import '../../assets/css/map.css';

const SalesChartCard = () =&amp;gt; {
  esriConfig.assetsPath = '/assets';

  const mapDiv = useRef(null);

  useEffect(() =&amp;gt; {
    if (mapDiv.current) {
      /**
       * Initialize application
       */
      const map = new ArcGISMap({
        basemap: 'gray-vector',
      });

      /* eslint-disable no-unused-vars */
      const view = new MapView({
        map,
        container: mapDiv.current,
        extent: {
          spatialReference: {
            wkid: 102100,
          },
          xmax: -13581772,
          xmin: -13584170,
          ymax: 4436367,
          ymin: 4435053,
        },
      });
      /* eslint-enable no-unused-vars */
    }
  }, []);

  return (
    &amp;lt;Card&amp;gt;
      &amp;lt;CardBody&amp;gt;
        &amp;lt;CardTitle&amp;gt;Map&amp;lt;/CardTitle&amp;gt;
        &amp;lt;div className="mapDiv" ref={mapDiv} /&amp;gt;
      &amp;lt;/CardBody&amp;gt;
    &amp;lt;/Card&amp;gt;
  );
};

export default SalesChartCard;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Github repo: &lt;A title="repo link" href="https://github.com/kishorvalgen/gogo-react.git" target="_blank" rel="noopener"&gt;Link&lt;/A&gt;&amp;nbsp;for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 05:13:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1047410#M72547</guid>
      <dc:creator>Valgenmap</dc:creator>
      <dc:date>2021-04-15T05:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1047604#M72556</link>
      <description>&lt;P&gt;Whoops, I missed one entry. Try also removing this line of code from SalesChartCard.js:&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;esriConfig.assetsPath = '/assets';&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2021 15:28:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1047604#M72556</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-04-15T15:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1047979#M72584</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;, I removed the the line as you mentioned and also implemented the earlier changes, but still I'm receiving the same errors.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[esri.widgets.Widget] widget-intl:locale-error esri.widgets.Attribution TypeError: t is not a constructor
[esri.widgets.Widget] widget-intl:locale-error esri.widgets.Zoom TypeError: t is not a constructor
index.js:1 [esri.widgets.Widget] widget-intl:locale-error esri.widgets.Popup TypeError: t is not a constructor
[esri.Basemap] #load() Failed to load basemap (title: 'Basemap', id: 'gray-vector') TypeError: t is not a constructor
workerFactory.js:5 Uncaught (in promise) TypeError: e is not a function
Uncaught (in promise) TypeError: Cannot read property 'zoomIn' of null&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="errors" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/11073i5895D57F912009BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="error 1.PNG" alt="errors" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;errors&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly can you look into updated &lt;A title="gogo-example" href="https://github.com/kishorvalgen/gogo-react" target="_blank" rel="noopener"&gt;Git&lt;/A&gt; repo and suggest solution.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 05:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1047979#M72584</guid>
      <dc:creator>Valgenmap</dc:creator>
      <dc:date>2021-04-16T05:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1048254#M72604</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/248401"&gt;@Valgenmap&lt;/a&gt;&amp;nbsp;Nice site! I didn't see the errors on npm start. Any chance you can provide a repo with just the mapping component that reproduces this issue? That will help to try and isolate the problem.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 18:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1048254#M72604</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-04-16T18:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1048457#M72614</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;, I don't have a separate repo for the mapping component. Actually, I followed the &lt;A title="jsapi-create-react-app" href="https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app" target="_blank" rel="noopener"&gt;sample&lt;/A&gt; provided by the ESRI and the example code by the gogo theme.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For developmental purpose in '&lt;SPAN&gt;SalesChartCard.js&lt;/SPAN&gt;' file I'm trying to implement the ESRI JS Map.&lt;/P&gt;&lt;P&gt;Run 'npm start' the application loads at&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;'http://localhost:3000/' &lt;/LI-CODE&gt;&lt;P&gt;after redirect to&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;'http://localhost:3000/app/dashboards/default'&lt;/LI-CODE&gt;&lt;P&gt;then the application breaks and starts to give errors.&lt;/P&gt;&lt;P&gt;I have adopted the changes you mentioned but still I'm facing the same issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly look into this&amp;nbsp;&lt;A title="gogo-react" href="https://github.com/kishorvalgen/gogo-react" target="_blank" rel="noopener"&gt;repo&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 03:55:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1048457#M72614</guid>
      <dc:creator>Valgenmap</dc:creator>
      <dc:date>2021-04-19T03:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1048744#M72627</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/248401"&gt;@Valgenmap&lt;/a&gt;&amp;nbsp;I followed your instructions and I do see the error now. But I didn't see anything obvious, and I don't understand the architecture of your app. It's too large for simple troubleshooting we can provide through this forum or through Esri tech support.&lt;/P&gt;&lt;P&gt;My recommendation is to create a branch and de-construct the app - keep simplifying it - until you figure out the problem. Since you know the architecture I think that wouldn't take very long. The only other alternative is to open a contract with our professional services and they can dedicate time to this level of troubleshooting.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 15:09:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1048744#M72627</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-04-19T15:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1049509#M72660</link>
      <description>&lt;P&gt;I am having the same issue. As long as I serve the application from&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A href="http://localhost:4200/storme/web/private/home" target="_blank" rel="noopener"&gt;http://localhost:4200&lt;/A&gt;&amp;nbsp;it works fine, but when I publish it to a subfolder,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:4200/storme/web/private/home" target="_blank" rel="noopener"&gt;http://localhost:4200/storme/web/private/home i am getting errors.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I can see that it tries to load the assets from&amp;nbsp;&lt;FONT color="#FF0000"&gt;/storme/web&lt;/FONT&gt;/assets/esri/widgets, but I would expect it to load from&amp;nbsp;&lt;FONT color="#FF0000"&gt;/storme/web&lt;/FONT&gt;/&lt;FONT color="#FF0000"&gt;private/&lt;/FONT&gt;assets/esri/widgets.&lt;/P&gt;&lt;P&gt;I wonder if it has to do with routing, as the "&lt;A href="http://localhost:4200/storme/web/private/home" target="_blank" rel="noopener"&gt;home&lt;/A&gt;" part from my url is part of the routing, and not from the web app base path.&lt;/P&gt;&lt;P&gt;I am setting now the assets path static to /storme/web/private/assets/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 11:30:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1049509#M72660</guid>
      <dc:creator>NicoleSulzberger</dc:creator>
      <dc:date>2021-04-21T11:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1049620#M72663</link>
      <description>&lt;P&gt;It sounds like your assetsPath isn't configured correctly for the subfolder. Are you using the AMD or ES modules (arcgis-js-api or @arcgis/core)?&lt;/P&gt;
&lt;P&gt;Version 4.19 which is releasing in the next few days has a fix for this. At 4.19 the assets will be pulled from CDN by default so there's no need to configure assetsPath unless you need local assets. You can test this by updating to the "next" version and commenting out your config.assetsPath:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markdown"&gt;npm i @arcgis/core@next
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 17:54:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1049620#M72663</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-04-21T17:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1049625#M72664</link>
      <description>&lt;P&gt;we are using the ES modules. Thanks for letting me know, looking forward to the next release then &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 15:47:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1049625#M72664</guid>
      <dc:creator>NicoleSulzberger</dc:creator>
      <dc:date>2021-04-21T15:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1051699#M72755</link>
      <description>&lt;P&gt;I have updated the npm packages in the repo, now I am able to see the Map loading in the app.&lt;/P&gt;&lt;P&gt;Now I'm using&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"@arcgis/core": "^4.19.1"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to add featureLayer on the Map., but not able to see the feature layer.&lt;/P&gt;&lt;P&gt;Am I following the right track to bring the feature layer into app. Kindly guide me on this.&lt;/P&gt;&lt;P&gt;Here is the below code,&lt;/P&gt;&lt;P&gt;SalesChartCard.js&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import React, { useState } from 'react';
import { Card, CardBody, CardTitle } from 'reactstrap';

import IntlMessages from '../../helpers/IntlMessages';

import Map from '../../components/mapcomponent/map';
import MyFeatureLayer from '../../components/mapcomponent/Layers/MyFeatureLayer';

const SalesChartCard = () =&amp;gt; {
  const [isInFullScreen, setIsInFullScreen] = useState(false);

  const isInFullScreenFn = () =&amp;gt; {
    return (
      (document.fullscreenElement &amp;amp;&amp;amp; document.fullscreenElement !== null) ||
      (document.webkitFullscreenElement &amp;amp;&amp;amp;
        document.webkitFullscreenElement !== null) ||
      (document.mozFullScreenElement &amp;amp;&amp;amp;
        document.mozFullScreenElement !== null) ||
      (document.msFullscreenElement &amp;amp;&amp;amp; document.msFullscreenElement !== null)
    );
  };

  const toggleFullScreen = () =&amp;gt; {
    const isFS = isInFullScreenFn();

    const docElm = document.documentElement;
    if (!isFS) {
      if (docElm.requestFullscreen) {
        docElm.requestFullscreen();
      } else if (docElm.mozRequestFullScreen) {
        docElm.mozRequestFullScreen();
      } else if (docElm.webkitRequestFullScreen) {
        docElm.webkitRequestFullScreen();
      } else if (docElm.msRequestFullscreen) {
        docElm.msRequestFullscreen();
      }
    } else if (document.exitFullscreen) {
      document.exitFullscreen();
    } else if (document.webkitExitFullscreen) {
      document.webkitExitFullscreen();
    } else if (document.mozCancelFullScreen) {
      document.mozCancelFullScreen();
    } else if (document.msExitFullscreen) {
      document.msExitFullscreen();
    }
    setIsInFullScreen(!isFS);
  };

  return (
    &amp;lt;Card&amp;gt;
      &amp;lt;div className="position-absolute card-top-buttons"&amp;gt;
        &amp;lt;button
          className="header-icon btn btn-empty d-none d-sm-inline-block"
          type="button"
          id="fullScreenButton"
          onClick={toggleFullScreen}
        &amp;gt;
          {isInFullScreen ? (
            &amp;lt;i className="simple-icon-size-actual d-block" /&amp;gt;
          ) : (
            &amp;lt;i className="simple-icon-size-fullscreen d-block" /&amp;gt;
          )}
        &amp;lt;/button&amp;gt;
      &amp;lt;/div&amp;gt;
      &amp;lt;CardBody&amp;gt;
        &amp;lt;CardTitle&amp;gt;
          &amp;lt;IntlMessages id="dashboards.map" /&amp;gt;
        &amp;lt;/CardTitle&amp;gt;
        &amp;lt;Map&amp;gt;
          &amp;lt;MyFeatureLayer /&amp;gt;
        &amp;lt;/Map&amp;gt;
      &amp;lt;/CardBody&amp;gt;
    &amp;lt;/Card&amp;gt;
  );
};

export default SalesChartCard;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;map.js&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;/* eslint-disable */
import React, { useRef, useEffect } from 'react';
import ArcGISMap from '@arcgis/core/Map';
import MapView from '@arcgis/core/views/MapView';

import '../../assets/css/map.css';

const Map = () =&amp;gt; {
  const mapDiv = useRef(null);

  useEffect(() =&amp;gt; {
    if (mapDiv.current) {
      /**
       * Initialize application
       */
      const map = new ArcGISMap({
        basemap: 'gray-vector',
      });

      /* eslint-disable no-unused-vars */
      const view = new MapView({
        map,
        container: mapDiv.current,
        center: [-95.7129, 37.0902],
        zoom: 3,
      });
      /* eslint-enable no-unused-vars */
      view.ui.move('zoom', 'bottom-left');
    }
  }, []);
  return &amp;lt;div className="mapDiv" ref={mapDiv} /&amp;gt;;
};

export default Map;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MyFeatureLayer.js&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import { useEffect, useState } from 'react';
import FeatureLayer from '@arcgis/core/layers/FeatureLayer';

function MyFeatureLayer(props) {
  console.log(props);
  const [myFeatureLayer, setMyFeatureLayer] = useState(null);
  useEffect(() =&amp;gt; {
    // eslint-disable-next-line no-shadow
    const myFeatureLayer = new FeatureLayer({
      url:
        'https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/2',
    });

    setMyFeatureLayer(myFeatureLayer);
    props.map.add(myFeatureLayer);

    return function cleanup() {
      props.map.remove(myFeatureLayer);
    };
  }, [myFeatureLayer, props]);
  return null;
}

export default MyFeatureLayer;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 13:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1051699#M72755</guid>
      <dc:creator>Valgenmap</dc:creator>
      <dc:date>2021-04-27T13:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1051743#M72761</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/248401"&gt;@Valgenmap&lt;/a&gt;&amp;nbsp;I'm not sure what's going on.&amp;nbsp; This code doesn't look right:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        &amp;lt;Map&amp;gt;
          &amp;lt;MyFeatureLayer /&amp;gt;
        &amp;lt;/Map&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;There is a working example you can look at here:&amp;nbsp;&lt;A href="https://github.com/Esri/nearby-javascript" target="_blank"&gt;https://github.com/Esri/nearby-javascript&lt;/A&gt;. And just for reference:&lt;/P&gt;&lt;P&gt;View code -&amp;nbsp;&lt;A href="https://github.com/Esri/nearby-javascript/blob/master/src/components/WebMapView.tsx" target="_blank"&gt;https://github.com/Esri/nearby-javascript/blob/master/src/components/WebMapView.tsx&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FeatureLayer -&amp;nbsp;&lt;A href="https://github.com/Esri/nearby-javascript/blob/master/src/data/layers.ts#L91" target="_blank"&gt;https://github.com/Esri/nearby-javascript/blob/master/src/data/layers.ts#L91&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 14:31:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1051743#M72761</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2021-04-27T14:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error while loading loading map.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1063314#M73347</link>
      <description>&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;I have also similar problem in our application, and could not figure out where is the problem.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dogan_0-1622475590387.png" style="width: 1517px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/14626iC60A8C389372D04D/image-dimensions/1517x179?v=v2" width="1517" height="179" role="button" title="Dogan_0-1622475590387.png" alt="Dogan_0-1622475590387.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any ideas on that?&lt;/P&gt;</description>
      <pubDate>Mon, 31 May 2021 15:40:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-while-loading-loading-map/m-p/1063314#M73347</guid>
      <dc:creator>Dogan</dc:creator>
      <dc:date>2021-05-31T15:40:36Z</dc:date>
    </item>
  </channel>
</rss>

