I’m getting a SyntaxError from utilizing the JavaScript spread operator ...
on resin/raspberrypi3-node in resinOS.
20.09.18 16:06:52 (-0700) main /usr/src/app/handlers/get/volume.js:15
20.09.18 16:06:52 (-0700) main ...parser(_volume),
20.09.18 16:06:52 (-0700) main ^^^
20.09.18 16:06:52 (-0700) main SyntaxError: Unexpected token ...
This error only occurs when running resinOS on a raspberry pi 3. When I use the same code, same Dockerfile, and build it with Docker myself (from same base image, resin/raspberrypi3-node) it runs just fine in a Docker instance. Anyone have any idea what’s going on?
Here’s the output from checking node version on the resin device:
root@66d73c2:/# apt list -a nodejs
Listing... Done
nodejs/oldstable 0.10.29~dfsg-2 armhf
nodejs/oldstable 0.10.29~dfsg-2 armhf