Retool Custom Components: Error at Sync

Hey, I have custom component that needs to be in sync across multiple self hosted environments. I tried following this guide but when I try to run npx retool-ccl sync I get the following error:

You are logged into https://staging..., this command will copy from that instance. If you would like to use another instance, login into that instance with `retool-ccl login` first
? Which instance would you like to sync to? https://production...
Syncing version dev... {
  success: false,
  message: 'Encountered DatabaseError when processing your request.'
}

Then, the custom component is not available in the components tab and in App Settings > Custom Components it appears with the caption not used in app.

Help will be appreciated!

1 Like

Hey @IftachWebiya

You have to first login with the perfect credential of your app domain,

Like
npx retool-ccl login
https://appname.retool.com/ then log in

After log in sync the app
npx retool-ccl sync

And please check the documentation : Build custom React components | Retool Docs

Hope you are create custom component according to documentation.

4 Likes