8000 Is Node.js 12.17.0 supported for zx as a package ? · Issue #824 · google/zx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Is Node.js 12.17.0 supported for zx as a package ? #824
Closed
@Cactusbone

Description

@Cactusbone

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

  1. Use Node.js 12.22.12 (I think all Node.js 12 > 12.17.0 exhibit the issue)
  2. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0