-
Notifications
You must be signed in to change notification settings - Fork 1k
Code that is using the object spread operator can't be packaged #206
Comments
I'm using babel-register too with node version 6.11.2.
Work fine for running node index.js |
Spread operator does not work with node version 8.6.0 |
I am facing the same issue. Node 8 LTS DO support spread object operator. But when I try to package my project using node8 in pkg, I get a Any help or solution? |
same problem :(( |
Facing this problem as well. |
Same here with 8.9.0 and 9.2.1.
|
Same here. |
Any solution to this problem? |
Try setting ecmaVersion to 9 here: |
…ect spread operator (vercel#206)
Same here |
I'll be taking care of these shortly, with some more updates coming to |
Love what is ZEIT doing these days for the web in terms of OSS, but definitely, this repository needs more attention. A Pull Request related to spread operator has merged days ago: is the PR closing this issue? We can find at least more than one issue related to spread operator that is not closed: The only thing that we have is a message from the main contributor saying "yep, no problem, news coming soon," but what news? Will all the issues be solved magically? why so little information? Just I want to understand how are you doing to maintain this repository and trying to push forward. |
Fixed in 4.3.1. |
@garthk I hadn't test it with that version. I'll test it and let you know |
|
It worked for me in the latest version |
|
Spread object operator is not supported at
where the line of code is module.exports = async ({ url, ...opts }) => { |
Thanks! |
Still breaks for me:
|
@OysteinAmundsen any solution? I'm also facing same error |
@OysteinAmundsen @arpitprod does it fail with |
@igorklopov yes, this is solution for me |
@arpitprod ok, but please try |
it's working fine now after update pkg |
For example:
When running
pkg index.js
:throws this error:
Node handles spread since v8.3: http://node.green/#ESNEXT-candidate--stage-3--object-rest-spread-properties. By default, pkg uses version 8.0.0 of Node, but when passing
-t latest
, it uses 8.3, I would assume object spread should work when using version 8.3.The text was updated successfully, but these errors were encountered: