title: How to fix " Error: Can't resolve '@arcgis/core/MapView' "
body: <p>i am trying to display a map with ArcGis Js Api in ReactJS</p>
  <pre><code>import Map from &quot;@arcgis/core/Map&quot;;
  import WebMap from &quot;@arcgis/core/WebMap&quot;;
  import MapView from &quot;@arcgis/core/MapView&quot;;
  
  
  function Test() {
  
      const webmap = new WebMap({
          portalItem: {
            id: &quot;e691172598f04ea8881cd2a4adaa45ba&quot;
          }
        });
        
        /************************************************************
         * Set the WebMap instance to the map property in a MapView.
         ************************************************************/
        const view = new MapView({
          map: webmap,
          container: &quot;viewDiv&quot;
        });
  
      return(
  
          &lt;div&gt;
              &lt;div id=&quot;viewDiv&quot;&gt;&lt;/div&gt;
          &lt;/div&gt;
  
      )
    };
    
  
    export default Test;
  </code></pre>
  <p>but i get the error &quot; Error: Can't resolve '@arcgis/core/MapView' &quot;</p>
  <p>i tried to fix the error with re-installing the module @arcgis/core, Webpack and others but i couldn't fix it</p>
  <p>can someone help me please ?</p>