We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a1f79d commit cab1b15Copy full SHA for cab1b15
src/server/webpack-plugin/server.js
@@ -13,7 +13,14 @@ export default class VueSSRServerPlugin {
13
compiler.plugin('emit', (compilation, cb) => {
14
const stats = compilation.getStats().toJson()
15
const entryName = Object.keys(stats.entrypoints)[0]
16
- const entryAssets = stats.entrypoints[entryName].assets.filter(isJS)
+ const entryInfo = stats.entrypoints[entryName]
17
+
18
+ if (!entryInfo) {
19
+ // #5553
20
+ return cb()
21
+ }
22
23
+ const entryAssets = entryInfo.assets.filter(isJS)
24
25
if (entryAssets.length > 1) {
26
throw new Error(
0 commit comments