I attempted to fix an importing issue in the ravenous project in the web developer career path. This led to only more consequences and the walk-through actually doesn’t cover this step!
I get his error on my react server
Error: Module build failed (from ./node_modules/file-loader/dist/cjs.js):
Error: ENOENT: no such file or directory, open ‘C:\Users\12892\Documents\Python for Finance\ravenous\src\components\App\logo.svg’
I created an App folder within the components folder. I then moved App.css & App.js from the src folder to this new App folder. It led to an import error for logo.svg, so I moved it into the App folder as well. This is where the errors arose.
The path to App is src/components/app/
There you will find App.js, App.css, and logo.svg
Blockquote
import logo from ‘./logo.svg’;
import ‘./App.css’;
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
}
export default App;
Blockquote