Skip to content

nodejs-package-lock-v3 can't handle bundledDependencies #1098

Open
@jameswhqi

Description

@jameswhqi

I'm using nodejs-package-lock-v3. My package-lock.json includes @tailwindcss/oxide-wasm32-wasi (defined here), which has some bundledDependencies. Each of the bundled dependencies (e.g. @tailwindcss/oxide-wasm32-wasi/node_modules/@emnapi/runtime) doesn't have the resolved field in package-lock.json, so building the nix package throws an error

       error: attribute 'resolved' missing
       at /nix/store/zb4d6bqfi1v5s3q7qcm6lg92pxmjz7wm-source/modules/dream2nix/nodejs-package-lock-v3/default.nix:21:33:
           20|       (builtins.dirOf config.nodejs-package-lock-v3.packageLockFile) + "/${plent.resolved}"
           21|     else if (l.hasPrefix "git+" plent.resolved)
             |                                 ^
           22|     then let

Any way to resolve this?

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