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/11/25 02:08:58 UTC

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

rabbah opened a new issue #14: should we support non-zip node action with exports.main?
URL: https://github.com/apache/incubator-openwhisk-runtime-nodejs/issues/14
 
 
   @rabbah commented on [Tue Oct 31 2017](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?
   
   ---
   
   @jthomas commented on [Thu Nov 09 2017](https://github.com/apache/incubator-openwhisk/issues/2918#issuecomment-343185255)
   
   I would definitely like this. Would be a nice feature for consistency. 
   
   

----------------------------------------------------------------
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