You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/10/31 23:18:10 UTC

[GitHub] rabbah opened a new issue #2918: should we support non-zip node action with exports.main?

rabbah opened a new issue #2918: should we support non-zip node action with exports.main?
URL: https://github.com/apache/incubator-openwhisk/issues/2918
 
 
   if you declare a node.js action with a `function foo` and use `exports.main = foo`, the action will fail to run `Initialization has failed due to: ReferenceError: main is not defined`. Currently we're only supporting `exports.main` for zip node.js action. Should we allow it for non-zip actions as well?
   
   The alternative is using `--main` for the CLI or correspondingly from the API.
   This could be an issue for the nodejs runtimes library - @csantanapr wdyt?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services