madjam002 / yarnpnp2nix

A performance focused and space efficient way of packaging NodeJS applications with Nix
MIT License
43 stars 5 forks source link

TypeError: S.getCustomDataKey is not a function #15

Closed mredaelli closed 10 months ago

mredaelli commented 1 year ago

I'm trying to package this application, but running yarn in the root I get this error:

➤ YN0001: TypeError: S.getCustomDataKey is not a function
    at /home/turing/src/actual/actual-server/.yarn/plugins/@yarnpkg/plugin-yarnpnp2nix.cjs:118:8117
    at Array.map (<anonymous>)
    at afterAllInstalled (/home/turing/src/actual/actual-server/.yarn/plugins/@yarnpkg/plugin-yarnpnp2nix.cjs:118:8080)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Na.triggerHook (/home/turing/src/actual/actual-server/.yarn/releases/yarn-3.4.1.cjs:392:3295)
    at async je.install (/home/turing/src/actual/actual-server/.yarn/releases/yarn-3.4.1.cjs:442:4457)
    at async /home/turing/src/actual/actual-server/.yarn/releases/yarn-3.4.1.cjs:499:12044
    at async Ge.start (/home/turing/src/actual/actual-server/.yarn/releases/yarn-3.4.1.cjs:409:2387)
    at async cu.execute (/home/turing/src/actual/actual-server/.yarn/releases/yarn-3.4.1.cjs:499:11944)
    at async cu.validateAndExecute (/home/turing/src/actual/actual-server/.yarn/releases/yarn-3.4.1.cjs:345:664)
➤ YN0000: Failed with errors in 1m 18s

I know very little of yarn, let alone yarn 3, so please forgive if I'm doing something silly :)

Can you advise?

madjam002 commented 10 months ago

Yarn 4 is required to use yarnpnp2nix