Skip to content

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

Open
@guoyunhe

Description

@guoyunhe

在组件开发项目中:

{
    "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 正常

Activity

imsobear

imsobear commented on Dec 6, 2021

@imsobear
Member

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

viko16

viko16 commented on Dec 7, 2021

@viko16

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

近期有适配的计划吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    webpack-dev-server 4 和 build-scripts+build-plugin-component 不兼容 · Issue #77 · ice-lab/build-scripts