Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sarahec opened this issue Jan 1, 2025 · 0 comments · Fixed by #8091
Closed

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

sarahec opened this issue Jan 1, 2025 · 0 comments · Fixed by #8091

Comments

@sarahec
Copy link
Contributor

sarahec commented Jan 1, 2025

[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 [email protected]. This, is a dependency of [email protected] 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 [email protected] which would seem to be a viable alternative.

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

@sarahec sarahec changed the title Build error in nix due to four year old ajv Build error under nix due to four year old ajv Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant