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

Fixed Webpack stats parsing errors #443

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

viktor-podzigun
Copy link

@viktor-podzigun viktor-podzigun commented Nov 26, 2022

Notes:

  • fixes webpack json stats parsing errors on missing optional fields in errors/warnings objects:
[error] Error parsing webpack stats output
[error] /warnings(0)/moduleName: JsonValidationError(List(error.path.missing),WrappedArray())
[error] /warnings(1)/moduleName: JsonValidationError(List(error.path.missing),WrappedArray())

[error] Error parsing webpack stats output
[error] /errors(0)/loc: JsonValidationError(List(error.path.missing),WrappedArray())
[error] /errors(1)/loc: JsonValidationError(List(error.path.missing),WrappedArray())
  • in case other parsing errors occur - prints webpack command to run manually that will help fixing original issues
  • related to Webpack 5 Support #350

@cornerman
Copy link

Can we get this merged? This would definitely help when encountering warning/hints/errors. Current workaround is to ignore/silence these warnings in your webpack config.

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.

2 participants