Closed fizzterious closed 2 years ago
Hey @fizzterious , I followed your replication steps verbatim with the same node and payload versions, but I did not have an issue starting up Payload.
Running yarn why
for both pino and pino-pretty gave "pino@6.14.0" and "pino-pretty@4.8.0" - the same versions as you.
3.2.3
. Can you try a previous 1.x version? My understanding is that 1.x is the stable release and 2 is vnext.Thanks for testing that out @denolfe. For the record, I was able to get it to work with yarn 3 by disabling Plug'n'Play.
I would love to try get pino update to latest & see if pnp works since pino-pretty was deprecated. But, I'll go ahead and close this out since I did get it to work (I might try and find some time to raise a PR to update the version in the future though).
The solution, if anybody stumbles on this in the future (and you're okay disabling pnp), it's simple enough to get working with yarn 3. You just need to set nodeLinker to node-modules
and it's able to resolve the linking and start payload just fine. You can see step 5 in the yarn v3 migration guide if you need more info.
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
Bug Report
Current Behavior
Unable to start the app due to error thrown from the payload dependency on pino.
I'm running payload
1.1.10
with node18.9.0
and yarn3.2.3
(same error occurs on node 16 however)Expected Behavior
App should start without errors (works fine in npm).
Possible Solution
There's a thread on the pino github page you can follow for more details, but I believe updating to the latest version of Pino may fix the error. The current latest version is
8.6.1
but payload is currently running^6.4.1"
.Steps to Reproduce
I didn't run into this error when using npm, so I believe it to be limited only to yarn/pnp, but repro steps are simple:
$ npx create-payload-app
cd /my-app
yarn dev
Detailed Description
For additional context, I recently migrated a payload app from a small repo using npm to a monorepo using yarn, and after switching am unable to start payload.
I tried the same from a fresh install using
npx create-payload-app
but still see the error.Here's the full error output:
Screenshot of error
Here's a screenshot of the error in a newly created application: