Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
guoyunhe opened this issue Dec 6, 2021 · 2 comments
Open
Assignees

Comments

@guoyunhe
Copy link
Contributor

guoyunhe commented Dec 6, 2021

在组件开发项目中:

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

@imsobear
Copy link
Member

imsobear commented Dec 6, 2021

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

@viko16
Copy link

viko16 commented Dec 7, 2021

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

近期有适配的计划吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants