错误:
找不到模块‘webpack/模式/WebPackOptions.json’
我的webpack.config.js是这样的-
var config = {
entry: './main.js',
output: {
path: '/',
filename: 'index.js',
},
devServer: {
inline: true,
port: 8080
},
module: {
loaders: [
{
test: /\.json$/,
loader: 'json'
},
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['es2015', 'react']
}
}
]
}
}
module.exports = config;发布于 2018-04-23 06:46:22
在这种情况下,您应该需要在现有的应用程序中运行。
yarn install或
npm install它可能会解决你的问题。
https://stackoverflow.com/questions/49974837
复制相似问题