Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Fresh cerated project has missing dependencies #13

Open
swissonid opened this issue Mar 1, 2023 · 1 comment
Open

Fresh cerated project has missing dependencies #13

swissonid opened this issue Mar 1, 2023 · 1 comment

Comments

@swissonid
Copy link

Hi

I wonder if this issue only happens on my machine, but I could reproduce it repeatedly.

Steps to reproduce it:

  1. Create a new payload project
    npx create-payload-app my-payload-project
    Chosen language: Typescript
    Chosen project template: it does matter it happens on all
    Enterd MongodDB connections: mongodb+srv://atlas-connection-string

Screenshot 2023-03-01 at 07 44 57

  1. Try to run it
    cd my-payload-project yarn dev

Screenshot 2023-03-01 at 07 45 54

  1. Adding missing dependencies and rerunning the project
    yarn add pino-pretty scheduler yarn dev

Screenshot 2023-03-01 at 07 54 20

  1. Adding process as dev dependencies
    It seems that the problem of point 3 has its roots in webpack/automatic-nodejs-polyfills-removed and can be resolved by adding process as dev dependency

After that, is seemed to work fine, didn't make an extensive test.

Env:
OS: Mac Ventura 13.0.1
arch: M1 (arm64)
node:v18.14.0
yarn:3.4.1
npm: 9.5.1
nvm: 0.39.3

@denolfe
Copy link
Member

denolfe commented Jul 5, 2023

The only thing of note that I can see in your env is that you're running yarn v3+. Though, I'm uncertain how this would affect the way webpack aliases dependencies.

Workaround for now, would be to have yarn v1.x installed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants