pnpm.io icon indicating copy to clipboard operation
pnpm.io copied to clipboard

Broken example code

Open wachunga opened this issue 2 years ago • 3 comments

The example at https://pnpm.io/pnpmfile#hooksreadpackagepkg-context-pkg

doesn't work: context.log is not a function

it looks like the signature (pkg, context) has changed

wachunga avatar Aug 05 '21 18:08 wachunga

What version of pnpm are you using? I checked this sample with v6.14.6 and it works as expected:

image

ltdu avatar Sep 08 '21 19:09 ltdu

Can you provide code to reproduce the issue? Then we can help you to reslove it.

hunter2009 avatar Feb 16 '22 03:02 hunter2009

I don't remember changes to the signature. If it doesn't work then it is a bug.

zkochan avatar Feb 16 '22 10:02 zkochan