diff --git a/packages/webpack-uni-pages-loader/lib/platforms/app-plus/index.js b/packages/webpack-uni-pages-loader/lib/platforms/app-plus/index.js index fbe35b28531..fc183b1a100 100644 --- a/packages/webpack-uni-pages-loader/lib/platforms/app-plus/index.js +++ b/packages/webpack-uni-pages-loader/lib/platforms/app-plus/index.js @@ -128,7 +128,7 @@ module.exports = function (pagesJson, userManifestJson) { const nvuePages = pagesJson.nvue && pagesJson.nvue.pages - if (nvuePages.length) { + if (nvuePages && nvuePages.length) { const pages = {} nvuePages.forEach(({ path,