Skip to content

Fixed Webpack stats parsing errors - #443

Open
viktor-podzigun wants to merge 1 commit into
scalacenter:mainfrom
viktor-podzigun:fix_webpack_stats_parsing
Open

Fixed Webpack stats parsing errors#443
viktor-podzigun wants to merge 1 commit into
scalacenter:mainfrom
viktor-podzigun:fix_webpack_stats_parsing

Conversation

@viktor-podzigun

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

Copy link
Copy Markdown

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
Copy Markdown

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