Skip to content

bug(build): tag v12.2.2 yarn build throws ERROR with node 12 #23434

@kiddliu

Description

@kiddliu

Reproduction

Steps to reproduce:

  1. nvm use 12
  2. yarn
  3. yarn build

Expected Behavior

Should successfully build Angular Material v12.2.2 with Node 12, as in the engines field of file package.json it specifies "node": ">=12.0.0 <16.0.0",

Actual Behavior

?? is not supported by Node v12, but v14.

ERROR: <builtin>: BazelWorkspaceStatusAction stable-status.txt failed: Failed to determine workspace status: Process exited with status 1
Could not read configuration file at /Users/kiddliu/source/angular-material-vantage/.ng-dev/config.
/Users/kiddliu/source/angular-material-vantage/node_modules/@angular/dev-infra-private/ng-dev/release/notes/release-notes.js:27
        this.config = this.getReleaseConfig().releaseNotes ?? {};
                                                            ^

SyntaxError: Unexpected token '?'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/Users/kiddliu/source/angular-material-vantage/ng-dev/release/publish/actions.ts:19:1)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

Environment

  • Angular: N/A
  • CDK/Material: 12.2.2
  • Browser(s): N/A
  • Operating System (e.g. Windows, macOS, Ubuntu): macOS Big Sur 11.5.2
  • Node: 12.22.1
  • Yarn: 1.22.10

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: dev-infraIssue related to internal project infrastructure

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions