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

docs-reorder: Crash when no i18n specified in payload.config.ts #90

Open
tyteen4a03 opened this issue Aug 6, 2024 · 2 comments
Open

Comments

@tyteen4a03
Copy link

Error:

 ⨯ node_modules/deepmerge/dist/cjs.js (61:1) @ getKeys
 ⨯ unhandledRejection: TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at getKeys (webpack-internal:///(rsc)/./node_modules/deepmerge/dist/cjs.js:61:16)
    at mergeObject (webpack-internal:///(rsc)/./node_modules/deepmerge/dist/cjs.js:86:2)
    at deepmerge (webpack-internal:///(rsc)/./node_modules/deepmerge/dist/cjs.js:117:10)
    at eval (webpack-internal:///(rsc)/./node_modules/@payload-enchants/docs-reorder/dist/index.js:40:20)
    at eval (webpack-internal:///(rsc)/./node_modules/payload/dist/config/build.js:15:20)
    at async buildConfig (webpack-internal:///(rsc)/./node_modules/payload/dist/config/build.js:13:36)

Reproduction:
Make sure there is no i18n section in your payload.config.ts.

Adding this back into payload.config.ts should make the error disappear:

    i18n: {
        translations: {},
    },
@r1tsuu
Copy link
Owner

r1tsuu commented Aug 6, 2024

I haven't tried beta 63+ with any of my plugins, there definetely were some breaking changes, so I'll need to go through each and fix those

@r1tsuu
Copy link
Owner

r1tsuu commented Aug 6, 2024

opened a draft PR #91

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

Successfully merging a pull request may close this issue.

2 participants