Closed dprothero closed 2 years ago
Thanks for raising this - I'll take a look, and see what I can do.
I've created an example with the latest yarn
here - https://github.com/atkinchris/next-logger/tree/issues/yarn-2-pnp/example. However, from a brief test, I get logging as expected.
Can you provide more details on your setup, including your version of yarn
, please?
I'm going to close this, as I wasn't able to reproduce it and it's been open for a while. Please reopen it if you've got more information.
The recommended usage of this module doesn't seem compatible with yarn 2's PnP module architecture. It throws the error
Error: Cannot find module 'next-logger'
, presumably because it's trying to load it before the.pnp.js
file has been loaded.