Hi fellow Codecademics,
In the Ravenous project I tried to compile my App. I receive the following message:
Failed to compile. ./src/index.js Module not found: Can't resolve 'src/components/App' in '/Users/anson/Desktop/ravenous/src'
We have moved the App.js and App.css into a componentsdirectory which has another folder called App. The path of the file is now:
The index.js file contains the following:
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from 'src/components/App'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want to start measuring performance in your app, pass a function // to log results (for example: reportWebVitals(console.log)) // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals reportWebVitals();
Any ideas how to solve this? Thank you for your help!