I am attempting to create a React-Leaflet map setup with create-react-app, but I am unable to import my Simple-Map component, which is exported using Named Exports. This is the first example on the React-Leaflet Examples page.
The error is:
./src/Simple.js
Module not found: Can't resolve './components' in '/ice_map/src'
The import statement from the example has been changed to import {Map, TileLayer, Marker, Popup } from './components' to reflect actual location of file.
The components directory contains 4 files: Map.js, TileLayer.js, Marker.js, Popup.js
The rest of the Simple.js file has been left as in the example. This file is imported into App.js via import SimpleExample from './Simple'
I understand this is a simple issue and an error that I am making, however I have not been able to resolve this error.
Any input is appreciated. Thanks in advance.
