Repository navigation
NXT-19371: resolve webpack version mismatch causing parser.getLocation build failure - #114
Merged
Merged
Conversation
daniel-stoian-lgp
approved these changes
Aug 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
Issue Resolved / Feature Added
The build fails during the Storybook webpack build with:
Two conflicting webpack versions are installed simultaneously:
devDependencies(the "host" webpack used by Storybook)@enact/dev-utils/node_modules/(resolved from peer dependencies)When
@enact/dev-utils'sILibPlugindoesrequire('webpack'), it resolves to the nested 5.109.2 copy. TheDefinePluginfrom 5.109.2 registers parser hooks that callparser.getLocation()— a method introduced in webpack 5.108+. However, the actual parser instance comes from the host's webpack 5.107.2, which does not have this method, causing theTypeError.Resolution
5.107.2to^5.109.2to align with the version npm resolves for nested dependenciesAdditional Considerations
Links
NXT-19371
Comments
Enact-DCO-1.0-Signed-off-by: Taeyoung Hong (taeyoung.hong@lge.com)