Skip to content

Commit

Permalink
fix(node): fix node launcher error
Browse files Browse the repository at this point in the history
  • Loading branch information
binggg committed Nov 10, 2020
1 parent dbb93c0 commit 7c3c37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cloudbase-node-builder/asset/__launcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

1 comment on commit 7c3c37c

@binggg
Copy link
Collaborator Author

@binggg binggg commented on 7c3c37c Nov 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.