{"record":{"id":"d5ad0c09a5f728d7","repo":"Meituan-Dianping/mpvue","slug":"entry-entryname-not-found-did-you-specify-th","errorCode":null,"errorMessage":"Entry \"${entryName}\" not found. Did you specify the correct entry option?","messagePattern":"Entry \"(.+?)\" not found\\. Did you specify the correct entry option\\?","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/server/webpack-plugin/server.js","lineNumber":34,"sourceCode":"      const entryInfo = stats.entrypoints[entryName]\n\n      if (!entryInfo) {\n        // #5553\n        return cb()\n      }\n\n      const entryAssets = entryInfo.assets.filter(isJS)\n\n      if (entryAssets.length > 1) {\n        throw new Error(\n          `Server-side bundle should have one single entry file. ` +\n          `Avoid using CommonsChunkPlugin in the server config.`\n        )\n      }\n\n      const entry = entryAssets[0]\n      if (!entry || typeof entry !== 'string') {\n        throw new Error(\n          `Entry \"${entryName}\" not found. Did you specify the correct entry option?`\n        )\n      }\n\n      const bundle = {\n        entry,\n        files: {},\n        maps: {}\n      }\n\n      stats.assets.forEach(asset => {\n        if (asset.name.match(/\\.js$/)) {\n          bundle.files[asset.name] = compilation.assets[asset.name].source()\n        } else if (asset.name.match(/\\.js\\.map$/)) {\n          bundle.maps[asset.name.replace(/\\.map$/, '')] = JSON.parse(compilation.assets[asset.name].source())\n        }\n        // do not emit anything else for server\n        delete compilation.assets[asset.name]","sourceCodeStart":16,"sourceCodeEnd":52,"githubUrl":"https://github.com/Meituan-Dianping/mpvue/blob/6c5d78ee04f58c6d782c456dfcf0fe63c0b7f89b/src/server/webpack-plugin/server.js#L16-L52","documentation":"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.","triggerScenarios":"Thrown at src/server/webpack-plugin/server.js:34 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c5d78ee04f58c6d782c456dfcf0fe63c0b7f89b","analyzedAt":"2026-09-02T05:17:40.946Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T11:17:12.671Z"}