webpack Module not found: Error: Can't resolve 'path' in '/usr/src/app' code example
Example 1: webpack Module not found: Error: Can't resolve '../
resolve: {
modules: [resolve(process.cwd(), 'src'), 'node_modules'],
extensions: ['*', '.js', '.jsx', '.json'],
symlinks: false,
cacheWithContext: false
}
Example 2: webpack Error can't resolve ./src
make shore that you write "webpack.config.js" and not "webpack-config.js"