Closed ivankyrpa closed 1 week ago
Just a shot in the dark, do you have the same issue, when starting the project with npx create-payload-app@beta --use-pnpm
? I had some issues when I didn't use the --use-pnpm
flag, but don't remember what they were exactly...
I also have a weird bug with a global. When using an umlaut ("Länder") it throws this error ->
ERROR: error: invalid byte sequence for encoding "UTF8": 0xe4 0x6e 0x64
import { GlobalConfig } from 'payload'
export const StatsBanner: GlobalConfig = {
slug: 'statsBanner',
label: {
en: 'Stats Banner',
de: 'Statistik-Banner',
},
fields: [
{
name: 'stats',
type: 'array',
required: true,
maxRows: 4,
fields: [
{
name: 'label',
type: 'text',
required: true,
label: {
en: 'Label',
de: 'Bezeichnung',
},
localized: true,
},
{
name: 'number',
type: 'text',
required: true,
label: {
en: 'Number',
de: 'Zahl',
},
localized: true,
},
{
name: 'subLabel',
type: 'text',
required: true,
label: {
en: 'Sub Label',
de: 'Unterbezeichnung',
},
localized: true,
},
],
},
],
}
This is how my Global looks like. Maybe the bug is somehow related to your issue.
Hey @ivankyrpa, thanks for the report! Fixed in this PR: https://github.com/payloadcms/payload/pull/8355
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.
🚀 This is included in version v3.0.0-beta.109
Link to reproduction
https://github.com/ivankyrpa/payload-cms-beta-107
Environment Info
Describe the Bug
Since the original issue was not resolved I open another one.
Reproduction Steps
Please see the repo to re-product the issue. I utilized
npx create-payload-app@beta
command to create the project.Test global looks like that:
Payload config: