Skip to content

Bug When copy content locale en -> id #16455

Closed

Description

@gayuhridho369

Describe the Bug

Error is:

[11:46:20] ERROR: There was an error copying data from "en" to "id"
    err: {
      "type": "TypeError",
      "message": "Cannot read properties of undefined (reading 'config')",
      "stack":
          TypeError: Cannot read properties of undefined (reading 'config')
              at copyDataFromLocale (webpack-internal:///(rsc)/./node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_@playwright_46eae746d51fb89fd6e8d90c64a9440f/node_modules/@payloadcms/ui/dist/utilities/copyDataFromLocale.js:219:51)
              at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
              at async copyDataFromLocaleHandler (webpack-internal:///(rsc)/./node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_@playwright_46eae746d51fb89fd6e8d90c64a9440f/node_modules/@payloadcms/ui/dist/utilities/copyDataFromLocale.js:149:12)
              at async executeActionAndPrepareForRender (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:34:3126)
              at async /Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:34:958
              at async handleAction (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:32:23964)
              at async renderToHTMLOrFlightImpl (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:39:30115)
              at async doRender (webpack-internal:///(rsc)/./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2F(payload)%2Fadmin%2F%5B%5B...segments%5D%5D%2Fpage&page=%2F(payload)%2Fadmin%2F%5B%5B...segments%5D%5D%2Fpage&appPaths=%2F(payload)%2Fadmin%2F%5B%5B...segments%5D%5D%2Fpage&pagePath=private-next-app-dir%2F(payload)%2Fadmin%2F%5B%5B...segments%5D%5D%2Fpage.tsx&appDir=%2FUsers%2Fgayuhridho%2FWWW%2Farchera%2Fsrc%2Fapp&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&rootDir=%2FUsers%2Fgayuhridho%2FWWW%2Farchera&isDev=true&tsconfigPath=tsconfig.json&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D&isGlobalNotFoundEnabled=!:434:28)
              at async AppPageRouteModule.handleResponse (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/compiled/next-server/app-page.runtime.dev.js:41:57850)
              at async handleResponse (webpack-internal:///(rsc)/./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2F(payload)%2Fadmin%2F%5B%5B...segments%5D%5D%2Fpage&page=%2F(payload)%2Fadmin%2F%5B%5B...segments%5D%5D%2Fpage&appPaths=%2F(payload)%2Fadmin%2F%5B%5B...segments%5D%5D%2Fpage&pagePath=private-next-app-dir%2F(payload)%2Fadmin%2F%5B%5B...segments%5D%5D%2Fpage.tsx&appDir=%2FUsers%2Fgayuhridho%2FWWW%2Farchera%2Fsrc%2Fapp&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&rootDir=%2FUsers%2Fgayuhridho%2FWWW%2Farchera&isDev=true&tsconfigPath=tsconfig.json&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D&isGlobalNotFoundEnabled=!:583:32)
              at async handler (webpack-internal:///(rsc)/./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2F(payload)%2Fadmin%2F%5B%5B...segments%5D%5D%2Fpage&page=%2F(payload)%2Fadmin%2F%5B%5B...segments%5D%5D%2Fpage&appPaths=%2F(payload)%2Fadmin%2F%5B%5B...segments%5D%5D%2Fpage&pagePath=private-next-app-dir%2F(payload)%2Fadmin%2F%5B%5B...segments%5D%5D%2Fpage.tsx&appDir=%2FUsers%2Fgayuhridho%2FWWW%2Farchera%2Fsrc%2Fapp&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&rootDir=%2FUsers%2Fgayuhridho%2FWWW%2Farchera&isDev=true&tsconfigPath=tsconfig.json&basePath=&assetPrefix=&nextConfigOutput=&preferredRegion=&middlewareConfig=e30%3D&isGlobalNotFoundEnabled=!:960:20)
              at async doRender (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js:1592:34)
              at async DevServer.renderToResponseWithComponentsImpl (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js:1934:13)
              at async DevServer.renderPageComponent (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js:2400:24)
              at async DevServer.renderToResponseImpl (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js:2440:32)
              at async DevServer.pipeImpl (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js:1035:25)
              at async NextNodeServer.handleCatchallRenderRequest (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/next-server.js:393:17)
              at async DevServer.handleRequestImpl (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/base-server.js:925:17)
              at async /Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/dev/next-dev-server.js:398:20
              at async Span.traceAsyncFn (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/trace/trace.js:157:20)
              at async DevServer.handleRequest (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/dev/next-dev-server.js:394:24)
              at async invokeRender (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js:239:21)
              at async handleRequest (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js:436:24)
              at async requestHandlerImpl (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js:464:13)
              at async Server.requestListener (/Users/gayuhridho/WWW/archera/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/next/dist/server/lib/start-server.js:218:13)
    }
 ⨯ [TypeError: Cannot read properties of undefined (reading 'config')] {
  digest: '736855131'
}

Link to the code that reproduces this issue

node_modules/@payloadcms/ui/dist/utilities/copyDataFromLocale.js

Reproduction Steps

Try copy locale content in global and get error

Which area(s) are affected?

Not sure

Environment Info

dev

Activity

  1. added
    status: needs-triage
    validate-reproduction
    on May 2, 2026
  2. removed
    validate-reproduction
    on May 2, 2026
  3. github-actions commented on May 2, 2026

    @github-actions
    Contributor

    Please add a reproduction in order for us to be able to investigate.

    Depending on the quality of reproduction steps, this issue may be closed if no reproduction is provided.

    Why was this issue marked with the invalid-reproduction label?

    To be able to investigate, we need access to a reproduction to identify what triggered the issue. We prefer a link to a public GitHub repository created with create-payload-app@latest -t blank or a forked/branched version of this repository with tests added (more info in the reproduction-guide).

    To make sure the issue is resolved as quickly as possible, please make sure that the reproduction is as minimal as possible. This means that you should remove unnecessary code, files, and dependencies that do not contribute to the issue. Ensure your reproduction does not depend on secrets, 3rd party registries, private dependencies, or any other data that cannot be made public. Avoid a reproduction including a whole monorepo (unless relevant to the issue). The easier it is to reproduce the issue, the quicker we can help.

    Please test your reproduction against the latest version of Payload to make sure your issue has not already been fixed.

    I added a link, why was it still marked?

    Ensure the link is pointing to a codebase that is accessible (e.g. not a private repository). "example.com", "n/a", "will add later", etc. are not acceptable links -- we need to see a public codebase. See the above section for accepted links.

    Useful Resources

  4. JessRynkar commented on Sep 2, 2026

    @JessRynkar
    Member

    Hi @gayuhridho369, to investigate this we need to know what Payload version you are using and clear reproduction steps. If you want to get those added and the issue is still valid, feel free to update this and we will re-open. Closing for now.

  5. removed
    status: needs-triage
    on Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions