diff --git a/modules/dream2nix/nodejs-granular-v3/default.nix b/modules/dream2nix/nodejs-granular-v3/default.nix index 7b527404f8..ee1a66788c 100644 --- a/modules/dream2nix/nodejs-granular-v3/default.nix +++ b/modules/dream2nix/nodejs-granular-v3/default.nix @@ -34,7 +34,7 @@ pdefs = config.nodejs-package-lock-v3.pdefs; defaultPackageName = config.nodejs-package-lock-v3.packageLock.name; - defaultPackageVersion = config.nodejs-package-lock-v3.packageLock.version; + defaultPackageVersion = config.nodejs-package-lock-v3.packageLock.version or ""; nodejs = config.deps.nodejs; diff --git a/modules/dream2nix/nodejs-package-lock-v3/default.nix b/modules/dream2nix/nodejs-package-lock-v3/default.nix index 73186e87f9..6c8bedc473 100644 --- a/modules/dream2nix/nodejs-package-lock-v3/default.nix +++ b/modules/dream2nix/nodejs-package-lock-v3/default.nix @@ -54,7 +54,7 @@ # Root level package name = entry.name; value = { - ${entry.version} = { + ${entry.version or ""} = { dependencies = getDependencies lock path entry; }; };