Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better-localized-fields: Payload component must be an object or a string #93

Open
Dan6erbond opened this issue Aug 28, 2024 · 1 comment

Comments

@Dan6erbond
Copy link

Hey there! I really like the idea of the better-localized-fields plugin for a more intuitive editing experience, however I can't seem to get it working with the latest beta. The following error is shown in the console if I try to use it:

Generating import map
[Function: Field]
  node_modules\payload\dist\bin\generateImportMap\index.js (53:1) @ addToImportMap
  Internal error: Error: addToImportMap > Payload component must be an object or a string
    at addToImportMap (./node_modules/payload/dist/bin/generateImportMap/index.js:64:19)
    at genImportMapIterateFields (./node_modules/payload/dist/bin/generateImportMap/iterateFields.js:51:54)
    at iterateCollections (./node_modules/payload/dist/bin/generateImportMap/iterateCollections.js:9:85)
    at iterateConfig (./node_modules/payload/dist/bin/generateImportMap/iterateConfig.js:10:79)
    at generateImportMap (./node_modules/payload/dist/bin/generateImportMap/index.js:84:69)
    at reload (./node_modules/@payloadcms/next/dist/utilities/getPayloadHMR.js:47:69)
    at async getPayloadHMR (./node_modules/@payloadcms/next/dist/utilities/getPayloadHMR.js:70:7)
    at async RootLayout (./node_modules/@payloadcms/next/dist/layouts/Root/index.js:57:21)```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Dan6erbond and others