Skip to content

Build error under nix due to four year old ajv #8088

@sarahec

Description

@sarahec

[REQUIRED] Environment info

firebase-tools:

v13.29.1

Platform:

nix 2.24.10/nixos 24.05 linux_x86-64 and aarch64-darwin (and likely all)

[REQUIRED] Test case

It's a build error. See NixOS/nixpkgs#369813

[REQUIRED] Steps to reproduce

  1. Install nix
  2. Clone github.com/NixOS/nixpkgs (depth=1 is fine for this example)
  3. nix-build -A
  4. Examine the log output prefixed with "npm error", see Hydra build log

[REQUIRED] Expected behavior

It should build

[REQUIRED] Actual behavior

The build fails.

The errors are coming from npm rebuild of node-re2@1.18.0. This, is a dependency of ajv@6.x imported in package.json. See npm-shrinkwrap.json

However, the ajv dependency can be relaxed or upgraded. 6.x was only needed for Typescript 3 support, see firebaseConfigValidate.ts. The repo is now using typescript 4.5.4, see package.json

Note that @angular-devkit/core imports ajv@8.1.1 which would seem to be a viable alternative.

P.S. This might also resolve the issue mentioned in webpack.common

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions