Skip to content

fix: update webpack peer dependency to ^4.37.0 #3650

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

Merged
merged 1 commit into from
Aug 16, 2021
Merged

fix: update webpack peer dependency to ^4.37.0 #3650

merged 1 commit into from
Aug 16, 2021

Conversation

dtinth
Copy link
Contributor

@dtinth dtinth commented Aug 16, 2021

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

No, this is a metadata update.

Motivation / Use-Case

When webpack-dev-server is run on any webpack version < 4.37, this error appears.

[webpack-cli] TypeError: compiler.getInfrastructureLogger is not a function

This is because compiler.getInfrastructureLogger is introduced in webpack v4.37, therefore webpack-dev-server is not compatible with any version of webpack below it.

Breaking Changes

None.

Additional Info

We hit this error when using [email protected] with [email protected].

When webpack-dev-server is run on any webpack version < 4.37, this error appears.

    [webpack-cli] TypeError: compiler.getInfrastructureLogger is not a function

This is because `compiler.getInfrastructureLogger` is introduced in webpack v4.37, therefore webpack-dev-server is not compatible with any version of webpack below it.
@codecov
Copy link

codecov bot commented Aug 16, 2021

Codecov Report

Merging #3650 (0746b22) into master (78594da) will increase coverage by 0.15%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3650      +/-   ##
==========================================
+ Coverage   93.87%   94.03%   +0.15%     
==========================================
  Files          15       15              
  Lines        1289     1290       +1     
  Branches      443      443              
==========================================
+ Hits         1210     1213       +3     
+ Misses         72       70       -2     
  Partials        7        7              
Impacted Files Coverage Δ
lib/Server.js 93.85% <100.00%> (+<0.01%) ⬆️
lib/servers/WebsocketServer.js 97.22% <0.00%> (+5.55%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1841c58...0746b22. Read the comment docs.

@alexander-akait alexander-akait merged commit dc2759c into webpack:master Aug 16, 2021
@dtinth dtinth deleted the patch-1 branch August 16, 2021 11:20
@jiengsad
Copy link

这个问题现在依然存在

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

Successfully merging this pull request may close these issues.

3 participants