webpack^3.0.0 및 webpack-dev-server^2.9.1이 모두 프로젝트 및 전역에 설치되어 있습니다. 내가 조언 다음 시도webpack-dev-server return"구성에 알 수없는 속성 'error'가 있습니다. "
module.exports = {
entry: {
app: [
'./src/index.js'
]
},
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader'
}]
},
resolve: {
extensions: ['*', '.js', '.jsx']
},
output: {
path: __dirname + '/dist',
publicPath: '/',
filename: 'bundle.js'
},
devServer: {
inline: false,
contentBase: './dist'
}
};
: 프로젝트 루트에서 webpack-dev-server
을 실행하면, 나는
Invalid configuration object. webpack-dev-server has been initialised
using a configuration object that does not match the API schema.
- configuration has an unknown property 'error'. These properties are
valid:
object { hot?, hotOnly?, lazy?, bonjour?, host?, allowedHosts?,
filename?, publicPath?, port?, socket?, watchOptions?, headers?,
clientLogLevel?, overlay?, progress?, key?, cert?, ca?, pfx?,
pfxPassphrase?, requestCert?, inline?, disableHostCheck?, public?,
https?, contentBase?, watchContentBase?, open?, useLocalIp?, openPage?,
features?, compress?, proxy?, historyApiFallback?, staticOptions?,
setup?, before?, after?, stats?, reporter?, noInfo?, quiet?,
serverSideRender?, index?, log?, warn? }
인텔리 루트에서 webpack.config.js 파일에는 다음이 포함 오류되게하고 this SO question에 있지만 아무 소용이 없습니다. 어떻게 webpack을 시작할 수 있습니까?
전 세계에 webpack-dev-server^2.9.1을 설치했을 때 webpack^3.0.0의 피어가 존재 함에도 불구하고 피어를 인정하지 않았습니다. 그게 관련이 있니?
정확히 내가 무엇을 찾고 있었습니까. 로컬 webpack-dev-server를 제거 했으므로 이제는 제대로 작동합니다. 어떤 이유로 npm start (webpack-dev-server를 실행하도록 구성됨)는 오류를 발생시키지 않습니다. – Omer