module not found can't resolve code example

Example 1: 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.

Example 2: Module not found: Can't resolve 'notistack' in 'C:\Users\

npm install notistack

Example 3: webpack Module not found: Error: Can't resolve '../

resolve: {
    modules: [resolve(process.cwd(), 'src'), 'node_modules'],
    extensions: ['*', '.js', '.jsx', '.json'],
    symlinks: false,
    cacheWithContext: false
  }