Помогите пожалуйста понять в чем ошибка? Устанавливаю проект с react/redux/webpack/webpck-devserver и выдает такую ошибку. Уже все обновлял, ничего не помогает. В гугле не нашел решения пробемы.
ERROR in multi main
Module not found: Error: Cannot resolve 'file' or 'directory' E:\Study projects\React-test\node_modules\webpack-dev-server\client\index.js in E:\Study projects\React-test
@ multi main
ERROR in multi main
Module not found: Error: Cannot resolve 'file' or 'directory' ./src/index.js in E:\Study projects\React-test
@ multi main
ERROR in multi main
Module not found: Error: Cannot resolve module 'webpack/hot/dev-server' in E:\Study projects\React-test
@ multi main
ERROR in multi main
Module not found: Error: Cannot resolve module 'webpack-dev-server/client' in E:\Study projects\React-test
@ multi main
npm - v3.10.8
node - v6.9.1
Config webpack-a
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const path = require('path');
const NODE_ENV = process.env.NODE_ENV || 'development';
module.exports = {
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/dev-server',
'./src/index.js'
],
output: {
publicPath: 'http://localhost:3000/',
path: __dirname + '/public',
filename: 'bundle.js'
},
watch: NODE_ENV == 'development',
watchOptions: {
aggregateTimeout: 100
},
devtool: NODE_ENV == 'development' ? 'cheap-inline-module-source-map' : null,
plugins: [
new webpack.HotModuleReplacementPlugin(),
new ExtractTextPlugin('bundle.css'),
new webpack.DefinePlugin({
NODE_env: JSON.stringify(NODE_ENV)
}),
new webpack.NoErrorsPlugin()
],
resolve: {
moduleDirectories: ['node_modules', 'bower_components'],
moduleTemplates: ['*', 'index'],
extensions: ['*', 'index'],
root: __dirname + '/src'
},
resolveLoader: {
moduleDirectories: ['node_modules', 'bower_components'],
moduleTemplates: ['*-loader', '*'],
extensions: ['', '.js']
},
devServer: {
host: 'localhost',
port: 3000,
contentBase: __dirname + '/public',
inline: true,
hot: true,
historySpiFallback: true
},
module: {
loaders: [
{
test: /\.js$/,
exclude: /node_modules/,
loaders: ['react-hot', 'babel-loader'],
include: [
path.resolve(__dirname, 'src')
],
plugins: ['transform-runtime']
},
{
test: /\.(png|jpg|svg|gif)$/,
loaders: 'file?name=img/[path][name].[ext]'
},
{
test: /\.woff(\?v=\d+\.d+\.d+)?$/,
loaders: 'url?limit=10000&mimetype=application/font-woff&name=fonts/[name].[ext]'
},
{
test: /\.woff2(\?v=\d+\.d+\.d+)?$/,
loaders: 'url?limit=10000&mimetype=application/font-woff&name=fonts/[name].[ext]'
},
{
test: /\.ttf(\?v=\d+\.d+\.d+)?$/,
loaders: 'url?limit=10000&mimetype=application/octet-stream&name=fonts/[name].[ext]'
},
{
test: /\.eot(\?v=\d+\.d+\.d+)?$/,
loaders: 'file&name=fonts/[name].[ext]'
},
{
test: /\.svg(\?v=\d+\.d+\.d+)?$/,
loaders: 'url?limit=10000&mimetype=image/svg+xml&name=fonts/[name].[ext]'
}
]
}
};
if(NODE_ENV == 'production'){
console.log('WTF');
module.exports.plugins.push(
new webpack.optimize.__UglifyJsPlugin({
compress: {
warnings: false,
drop_console: true,
unsafe: true
}
})
)
}
Буду очень благодарен за помощь!