が見つかりません/config/webpack/development.jsをもたらし、私は私のwebpack.configファイルを書かれているが、私は端末からのWebPACKを実行すると、私は言って戻ってエラーを取得:WebPACKのコマンドが
ERROR: Webpack config /home/likono/learn/yak-yik/config/webpack/development.js not found, please run 'bundle exec rails webpacker:install' to install webpacker with default configs or add the missing config file for your custom environment.
私も持っていますグローバルにインストールされたwebpack。 は、ここで私は上記の構成の問題のカップルを見つけた私のwebpack.config.js
var webpack = require("webpack");
var path = require("path");
module.exports = {
entry: {
app: './src/app.js'
},
output: {
filename: 'public/build/bundle.js',
sourceMapFilename: 'public/build/bundle.map'
},
devtool: '#source-map',
module: {
loaders: [
{ test: /\.jsx?$/,
exclude: /(node_modules)/,
loader: 'babel',
query: {
presets: ['react', 'es2015']
}
}
]
}
};
package.json
{
"name": "yak-yik",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "node ./bin/www"
},
"dependencies": {
"body-parser": "~1.18.2",
"cookie-parser": "~1.4.3",
"debug": "~2.6.9",
"express": "~4.15.5",
"hjs": "~0.0.6",
"mongoose": "^4.13.4",
"morgan": "~1.9.0",
"nodemon": "^1.12.1",
"react": "^16.1.1",
"react-dom": "^16.1.1",
"serve-favicon": "~2.4.5"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"webpack": "^3.8.1"
}
}
使用しているウェブパックのバージョンは? – brandNew
"webpack": "^ 3.8.1" – IanLikono
大丈夫です。あなたは 'package.json'をアップロードしてください。 – brandNew