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:TypeError: Cannot destructure property 'compile' of 'undefined' or 'null' #30

Open
smileyby opened this issue May 25, 2021 · 0 comments

Comments

@smileyby
Copy link
Owner

使用webpack 运行项目是报上面的错误
原因: webpack和webpack-dev-server 版本的原因

解决:webpack git issue

如果webpack-dev-server是3.X,webpack必须是4.X;如果webpack-dev-server是2.X,webpack必须是3.X(版本对应上即可)

webpack-dev-server 3.x is only compatible with webpack 4.x, as the peer dependencies already warn you about.

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

No branches or pull requests

1 participant