sainsburys-tech / next-logger

JSON logging patcher for Next.js
MIT License
144 stars 14 forks source link

Incompatible with yarn v2? #1

Closed dprothero closed 2 years ago

dprothero commented 3 years ago

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.

atkinchris commented 3 years ago

Thanks for raising this - I'll take a look, and see what I can do.

atkinchris commented 3 years ago

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?

atkinchris commented 2 years ago

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.