diff --git a/packages/cloudbase-node-builder/asset/__launcher.js b/packages/cloudbase-node-builder/asset/__launcher.js index 259e84fe7..5fd3d4fd0 100644 --- a/packages/cloudbase-node-builder/asset/__launcher.js +++ b/packages/cloudbase-node-builder/asset/__launcher.js @@ -27,7 +27,7 @@ module.exports.main = async (event, context) => { let app = entry; // support for async load app - if (entry?.tcbGetApp && typeof entry.tcbGetApp === 'function') { + if (entry && entry.tcbGetApp && typeof entry.tcbGetApp === 'function') { app = await entry.tcbGetApp(); }