Closed MuhamedFathy closed 5 years ago
What is your node version? My assumption is that you are running on an old version (probably lower than 6, based on a quick Google search) which is not supported.
Version 6.9.0
Yup, I get the same error when running the script on node v6.9.0. I did some more searching and according to this website the object spread operator has only been available since node version 8.6.0 (or 8.2.1, but with a flag). I accidentally searched for the wrong operater earlier.
Please try installing a newer version of node or use Babel to compile the code to be compatible with your node version.
I have updated node to LTS v10.16.0
from this site "https://nodejs.org/en/" and the script now working.
I am trying to use this script but it's throws this exception when I use
--export