error cannot find module 'resolve-cwd' webpack --json code example
Example 1: Error: Cannot find module 'webpack-dev-server'
npm install --save-dev webpack-dev-middleware webpack-hot-middleware
Example 2: webpack Module not found: Error: Can't resolve '../
resolve: {
modules: [resolve(process.cwd(), 'src'), 'node_modules'],
extensions: ['*', '.js', '.jsx', '.json'],
symlinks: false,
cacheWithContext: false
}