Skip to content

Commit b8748cf

Browse files
authored
Merge pull request #15873 from webpack/more-informative-error
more informative error in ProvideSharedPlugin
2 parents b1cc471 + e71d3b4 commit b8748cf

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

lib/sharing/ProvideSharedPlugin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ class ProvideSharedPlugin {
129129
details =
130130
"No description file (usually package.json) found. Add description file with name and version, or manually specify version in shared config.";
131131
} else if (!descriptionFileData.version) {
132-
details =
133-
"No version in description file (usually package.json). Add version to description file, or manually specify version in shared config.";
132+
details = `No version in description file (usually package.json). Add version to description file ${resourceResolveData.descriptionFilePath}, or manually specify version in shared config.`;
134133
} else {
135134
version = descriptionFileData.version;
136135
}

0 commit comments

Comments
 (0)