Closed mattiaerre closed 7 years ago
Interesting! macOS? Cli version?
@matteofigus
➜ oc-hub git:(master) ✗ oc --version
0.36.1
let me know if you like to do a quick google hangout
Ah! Got it! It is trying to uglify the JS in the static folder, but that's ES6, which is not supported by Uglify. I think we should open an issue in the main repo as this seems to me like a interesting new problem. Quick fix, add a minify:false flag in the package.json - proper fix would be to fix oc in such way the client-side js minification happens with babili instead of uglify /cc @nickbalestra
@matteofigus thing is that I've been able to publish it w/ a previous version of the CLI; maybe something changed in the new version? I do agree with you re the fact that we shouldn't uglify the static folder(s). As a quick fix, I will try to babelify myself the JavaScript; it is also good from a browser compatibility POV. Not sure if the best solution would be using babel also at the public folder level or just exclude it from the publish process.
// cc @nickbalestra
@matteofigus do you still want me to open an issue in the OC repo? Do you think this issue is still relevant?
Yes. Currently a component with ES6 on static js fails to publish and this is an issue.
Done it -> https://github.com/opentable/oc/issues/409
When I try to publish the
oc-feedback-form
component to https://pink-pineapple.herokuapp.com/ registry I get the following error:not sure why; any idea @matteofigus?