Skip to content

Can no longer generate payload types #52

@FinnIckler

Description

@FinnIckler

Plugin version

0.10.1

Payload version

3.84.1

Auth.js version

5.0.0-beta.31

Describe the bug

Sometime in the last month or so you can no longer generate types with payload generate:types

The error points to this plugin:

node:internal/process/promises:394
    triggerUncaughtException(err, true /* fromPromise */);
    ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/finn/RubymineProjects/worldcubeassociation.org/next-frontend/node_modules/payload-authjs/dist/authjs/getAuthjsInstance' imported from /home/finn/RubymineProjects/worldcubeassociation.org/next-frontend/node_modules/payload-authjs/dist/exports/server.js
    at finalizeResolution (node:internal/modules/esm/resolve:274:11)
    at moduleResolve (node:internal/modules/esm/resolve:859:10)
    at defaultResolve (node:internal/modules/esm/resolve:983:11)
    at nextResolve (node:internal/modules/esm/hooks:748:28)
    at resolve (file:///home/finn/RubymineProjects/worldcubeassociation.org/next-frontend/node_modules/tsx/dist/esm/index.mjs?1779198870021:2:5279)
    at nextResolve (node:internal/modules/esm/hooks:748:28)
    at Hooks.resolve (node:internal/modules/esm/hooks:240:30)
    at handleMessage (node:internal/modules/esm/worker:199:24)
    at Immediate.checkForMessages (node:internal/modules/esm/worker:141:28)
    at process.processImmediate (node:internal/timers:485:21) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///home/finn/RubymineProjects/worldcubeassociation.org/next-frontend/node_modules/payload-authjs/dist/authjs/getAuthjsInstance'
}

Node.js v22.22.0

To Reproduce

  1. Clone https://github.com/thewca/worldcubeassociation.org/
  2. Run yarn install in the next-frontend repository
  3. run yarn types:payload

Additional context / Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions