addToImportMap > Payload component must be an object or a string #13722
Unanswered
caycewilliams
asked this question in
Q&A
Replies: 1 comment
-
You'll need to pass a path to your component, and not the actual component import. Check out our custom component docs for more details! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Bug
Adding a react component to field components produces this error
Link to the code that reproduces this issue
I can't
Reproduction Steps
Start a new payload project, add a component to a field
Every time the server hot reloads on a build config change, I get this error.
I just modified the
addToImportMap
function to remove the object or string check and it works fine. But I'm looking for a suggestion to change my code or fix to core library in an update to correctly fix the issue.Which area(s) are affected? (Select all that apply)
area: core
Environment Info
Beta Was this translation helpful? Give feedback.
All reactions