rasantiago opened a new 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 Using local deployment of OW through docker compose on mac. All has been wonderful till a couple days ago when I did a fresh install and my actions started returning: ``` "error": "Initialization has failed due to: Action entrypoint 'main' is not a function." ``` My actions are built using typescript and webpack based on the pattern found in [IBM Cloud Function Typescript Starter Kit](https://github.com/IBM-Cloud/openwhisk-typescript). It looks like this [change to the global scope eval](https://github.com/apache/incubator-openwhisk-runtime-nodejs/commit/afc93ba231de2970df4fd7228cb5c04327addc10) is responsible. Here is a small bundled action that should reproduce the issue: ``` !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=407)}({407:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,u){function i(e){try{f(r.next(e))}catch(e){u(e)}}function c(e){try{f(r.throw(e))}catch(e){u(e)}}function f(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(i,c)}f((r=r.apply(e,t||[])).next())})};function o(){return r(this,void 0,void 0,function*(){return{statusCode:200,body:{status:"ok"}}})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,global.main=o}}); ```
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
