Error creating custom components #3224
Unanswered
HarkiratShopism1
asked this question in
Q&A
Replies: 0 comments
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.
-
I have installed payload to my existing project using "npm install --save --legacy-peer-deps payload" command.
I am facing issues when I am trying to add custom components to the admin panel. I created a folder named components within that created a .tsx file containing the react code of the custom component when I try to import it to the payload.config.ts it is not getting imported.
I also tried to add a component to the config directly just like a following example but it wont run.
export default buildConfig({
admin: {
components: {
Nav: () => { return (
}
}
});
Beta Was this translation helpful? Give feedback.
All reactions