rabbah edited a comment on issue #138: Change in global scope eval causes 
`main` to not be found in bundled action (typescript + webpack)
URL: 
https://github.com/apache/incubator-openwhisk-runtime-nodejs/issues/138#issuecomment-507239884
 
 
   Here's a workaround:
   
   ```
   > ~/projects/openwhisk/tools/actionProxy/invoke.py init global.main t.js 
   {"OK":true}
   > ~/projects/openwhisk/tools/actionProxy/invoke.py run
   {"statusCode":200,"body":{"status":"ok"}}
   ```
   
   Set `--main global.main`.
   
   
   ```
   > wsk action update test t.js --docker openwhisk/action-nodejs-v10:afc93ba 
--main global.main
   ok: updated action test
   > wsk action invoke test -r
   {
       "body": {
           "status": "ok"
       },
       "statusCode": 200
   }
   ```

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


With regards,
Apache Git Services

Reply via email to