build-scripts icon indicating copy to clipboard operation
build-scripts copied to clipboard

webpack-dev-server 4 和 build-scripts+build-plugin-component 不兼容

Open guoyunhe opened this issue 3 years ago • 2 comments

在组件开发项目中:

{
    "build-plugin-component": "^1.9.2",
    "build-scripts": "^1.2.1",
    "webpack": "^5.64.4",
    "webpack-dev-server": "^4.6.0"
}

运行 build-scripts start 报错

ERR! Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'overlay'. These properties are valid:
   object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, static?, watchFiles?, webSocketServer? }

运行 build-scripts build 正常

guoyunhe avatar Dec 06 '21 03:12 guoyunhe

组件工程(build-plugin-component)还没有支持 webpack 5

imsobear avatar Dec 06 '21 06:12 imsobear

组件工程(build-plugin-component)还没有支持 webpack 5

近期有适配的计划吗?

viko16 avatar Dec 07 '21 04:12 viko16