reactjs Module not found: Can't resolve 'styled-components
npm install styled-components --save
this should fix your problem
reactjs Module not found: Can't resolve 'styled-components
npm install styled-components --save
this should fix your problem
module not found: can't resolve 'react' in 'c:\users\pavlos\desktop\reactjs\hwr\reactproject2\src'
type: npm install react
next command type : npm install react-dom
that's the solution.
Module not found: Can't resolve './components/NavBar'
In your case, App.js is in src/ directory while header.js is in src/components. To import you would do import Header from './components/header'. This roughly translate to in my current directory, find the components folder that contain a header file.
Now, if from header.js, you need to import something from card, you would do this. import Card from '../containers/card'. This translate to, move out of my current directory, look for a folder name containers that have a card file.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us