adobe / adobeio-cna-starter-project

DEPRECATED - Please use https://github.com/adobe/aio-cli to manage your future apps!
https://adobe.io
Apache License 2.0
10 stars 8 forks source link

Cannot deploy action that requires`openwhisk` dependency and that was built with parcel #33

Open moritzraho opened 5 years ago

moritzraho commented 5 years ago

Action deployment hangs forever when having a dependency to openwhisk module + parcel minification on build

Actual Behaviour/Reproduce Scenario (including but not limited to)

  1. npm install openwhisk
  2. add const openwhisk = require('openwhisk') on top of actions/hello/index.js All of those hang: npm run deploy:actions aio cna deploy -av aio runtime create hello dist/actions/hello.js Weird error message, cluttered output with wsk wsk action create hello dist/actions/hello.js
devongovett commented 5 years ago

I'm not sure there is enough information here to make this a Parcel issue. Could you look into this more and file an issue on https://github.com/parcel-bundler/parcel with a complete reproduction?