Skip to content

configuration.stats has an unknown property 'maxModules' #6286

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

Closed
AmalJossy opened this issue Jul 18, 2022 · 0 comments · Fixed by #6292
Closed

configuration.stats has an unknown property 'maxModules' #6286

AmalJossy opened this issue Jul 18, 2022 · 0 comments · Fixed by #6292

Comments

@AmalJossy
Copy link

AmalJossy commented Jul 18, 2022

Feature to document

In the Debugging Optimization Bailouts doc, the snippet provided is

module.exports = {
  //...
  stats: {
    // Examine all modules
    maxModules: Infinity,
    // Display bailout reasons
    optimizationBailout: true,
  },
};

However, maxModules is not a valid parameter anymore, webpack will fail with the following message if the parameter is present in config.
`Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.

  • configuration.stats has an unknown property 'maxModules'`

An explanation of how bailout reasons for all modules can be displayed can also be helpful here

Author(s)

@skipjack @TheLarkInn @byzyk

Additional information

N/A

[ ] I am willing to work on this issue and submit a pull request.

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 a pull request may close this issue.

1 participant