Meituan-Dianping/mpvue · error · Error
Entry "${entryName}" not found. Did you specify the correct
Error message
Entry "${entryName}" not found. Did you specify the correct entry option? What it means
Guard thrown by the SSR server webpack plugin in its emit hook when the first entrypoint in the webpack stats has no usable JS entry asset. This means the webpack entry option does not resolve to a JavaScript file (wrong name, empty entry, or an entry producing only non-JS assets), so the renderer cannot determine the server bundle.
Source
Thrown at src/server/webpack-plugin/server.js:34
const entryInfo = stats.entrypoints[entryName]
if (!entryInfo) {
// #5553
return cb()
}
const entryAssets = entryInfo.assets.filter(isJS)
if (entryAssets.length > 1) {
throw new Error(
`Server-side bundle should have one single entry file. ` +
`Avoid using CommonsChunkPlugin in the server config.`
)
}
const entry = entryAssets[0]
if (!entry || typeof entry !== 'string') {
throw new Error(
`Entry "${entryName}" not found. Did you specify the correct entry option?`
)
}
const bundle = {
entry,
files: {},
maps: {}
}
stats.assets.forEach(asset => {
if (asset.name.match(/\.js$/)) {
bundle.files[asset.name] = compilation.assets[asset.name].source()
} else if (asset.name.match(/\.js\.map$/)) {
bundle.maps[asset.name.replace(/\.map$/, '')] = JSON.parse(compilation.assets[asset.name].source())
}
// do not emit anything else for server
delete compilation.assets[asset.name]View on GitHub (pinned to 6c5d78ee04)
Solutions
- Fix the entry option in the webpack server config to point at the real server entry file
- Check the entry name printed in the message against stats.entrypoints
- Ensure the entry file exists and is included by the configured resolve extensions
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/server/webpack-plugin/server.js:34 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Meituan-Dianping/mpvue@6c5d78ee04 (2026-09-02).
Data as JSON: /api/errors/d5ad0c09a5f728d7.
Report an issue: GitHub.