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

Action built with parcel and requiring @adobe/aio-cli-config cannot be deployed #28

Open moritzraho opened 5 years ago

moritzraho commented 5 years ago

Behaviour

It seems that aio runtime truncates the code and this results in a malformed request error

✖ Deploy actions
 ›   Error: Command failed: aio runtime deploy -m /Users/mraho/work/adobeio-cna-starter-project/.manifest-dist.yml
 ›     ›   Error: Failed to deploy: the request content was malformed:
 ›     ›   unexpected end-of-input at input index 74845 (line 1, position 74846),
 ›     ›   expected '"':

This also doesn't work with wskdeploy -m .manifest-dist.yml and wsk action create myaction dist/actions/hello.js

Steps to Reproduce

moritzraho commented 5 years ago

The problem is with parcel minification as stated by #30

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?