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

Getting "Unknown type 'StructCustomFieldConfig'" error when extending admin ui #3299 jac-br started this conversation in General #3304

Open
jac-br opened this issue Jan 3, 2025 · 1 comment
Labels
type: bug 🐛 Something isn't working

Comments

@jac-br
Copy link

jac-br commented Jan 3, 2025

Describe the bug
I extended admin ui following this doc (added sample plugin, provider and compileUiExtensions). Now, I am getting "Unknown type 'StructCustomFieldConfig'" error on app load. It's a response of GetServerConfig query. Could anyone point what is the meaning and reason of this error?
Zrzut ekranu z 2024-12-27 12-42-59

To Reproduce
Steps to reproduce the behavior:

  1. Go through https://docs.vendure.io/guides/extending-the-admin-ui/getting-started/
  2. Open orders page

Expected behavior
GetServerConfig should respond with 200

Environment (please complete the following information):

  • @vendure/core version: 3.0.3
  • Nodejs version: 18.20.4
  • Database postgres
@jac-br jac-br added the type: bug 🐛 Something isn't working label Jan 3, 2025
@michaelbromley
Copy link
Member

Hi, this sounds like a version mismatch issue. The Struct custom field type was introduced in v3.1 so it seems you must have a newer version of the admin ui package. One solution would be to update all your Vendure packages to the latest v3.1.x version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants