Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Cant get Payload to work

default discord avatar
_wizteklast year
6

I just created a new Payload 3.0.0 project with all the instructions from the official website but this is what i get when i run the app



i have tried deleting the pnpm-lock.yaml and node modules and reinstalling but still the same results

  • default discord avatar
    s.laamlast year

    this is weird I just installed a fresh one and it's working



    how did you create your application did you use


    pnpx create-payload-app@beta 


    if yes



    run this command inside the project



    pnpm payload info

    check the versions you're using node , pnpm , payload etc

  • default discord avatar
    _wizteklast year
    $ pnpm payload info
    
    > store-emeka@1.0.0 payload C:\ModernDev\store-emeka
    > cross-env NODE_OPTIONS=--no-deprecation payload "info"
    
    
    Binaries:
      Node: 22.8.0
      npm: N/A
      Yarn: N/A
      pnpm: 9.7.0
    Relevant Packages:
      payload: 3.0.0-beta.133
      next: 15.0.0
      @payloadcms/db-postgres: 3.0.0-beta.133
      @payloadcms/email-nodemailer: 3.0.0-beta.133
      @payloadcms/graphql: 3.0.0-beta.133
      @payloadcms/live-preview: 3.0.0-beta.133
      @payloadcms/live-preview-react: 3.0.0-beta.133
      @payloadcms/next/utilities: 3.0.0-beta.133
      @payloadcms/payload-cloud: 3.0.0-beta.133
      @payloadcms/plugin-form-builder: 3.0.0-beta.133
      @payloadcms/plugin-nested-docs: 3.0.0-beta.133
      @payloadcms/plugin-redirects: 3.0.0-beta.133
      @payloadcms/plugin-search: 3.0.0-beta.133
      @payloadcms/plugin-seo: 3.0.0-beta.133
      @payloadcms/richtext-lexical: 3.0.0-beta.133       
      @payloadcms/translations: 3.0.0-beta.133
      @payloadcms/ui/shared: 3.0.0-beta.133
      react: 19.0.0-rc-65a56d0e-20241020
      react-dom: 19.0.0-rc-65a56d0e-20241020
    Operating System:
      Platform: win32
      Arch: x64
      Version: Windows 11 Pro
      Available memory (MB): 8044
      Available CPU cores: 4
  • default discord avatar
    s.laamlast year
    @298051464280932354

    I tried to change my node to your version and it's working


    try to update pnpm itself


    pnpm self-update


    delete node-module , .next , package.lock


    and re-install dependencies

  • default discord avatar
    _wizteklast year

    alright



    same thing



    I think I'll try it later in wsl

  • default discord avatar
    anders2292last year

    Since it's complaining about compiling a file inside your node_modules, I think you can fix this error by setting

    "skipLibCheck": true,

    in your tsconfig.json

  • default discord avatar
    _wizteklast year

    Heh, it was already set in the projects tsconfig



    Seems to work in WSL

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.