Closed
Description
Hello !
I've seen the releases notes of 8.1.0 which says
Extended Node.js supported versions range: from 12.17.0 to the latest 22.x.x.
However with Node.js 12.22.12 (the one shipped with alpine 3.20, upon which docker-cli images are built), I'm getting SyntaxError: Unexpected reserved word
with import {$, cd} from 'zx';
What I'm trying to achieve: I'm trying to run mocha tests (using mocha binaries), which starts and stops Docker containers, so I'm using zx as a package. And since I also need docker client, I'm using the docker-cli image, with alpine 3.20, which provides Node.js 12.22.12.
It is expected to work ? Anything I can to do work around it ?
Thanks
Expected Behavior
import {$, cd} from 'zx'
No error
Actual Behavior
import {$, cd} from 'zx'
SyntaxError: Unexpected reserved word
Steps to Reproduce
- Use Node.js 12.22.12 (I think all Node.js 12 > 12.17.0 exhibit the issue)
- simply import zx in a module
Specifications
- zx version: 8.1.1
- Platform: windows and docker (separately)
- Runtime: Node.js 12.22.12
Metadata
Metadata
Assignees
Labels
No labels