Hi! Today, when trying to develop a custom component, I couldn't get it to update, despite running npx retool-ccl dev. I looked into the our self-hosted instance's logs and saw:
Invalid path retool-custom-component-manifest.json.js in zip file. Path cannot be an absolute path, cannot contain the character | and must be one of the files [components.js, components.css, retool-custom-component-manifest.json]
Indeed, there's a file retool-custom-component-manifest.json.js in the dist/ folder.
Based on the thread below I explicitly set @tryretool/custom-component-support's version to ^1.7.0.
Have you made any changes to the retool-custom-component-manifest.json.js file? Also, please check the generated retool-custom-component-manifest.json file, as it defines how data can be passed between the Retool app and your custom component. It's possible that an error could be caused by unnecessary or incorrect inputs or outputs defined in this file.
Keep in mind that this file is automatically generated when you clone the Retool custom component template, so it's important not to rename it.
Additionally, please ensure you're using the latest version of the @tryretool/custom-component-support package by updating it in your project.
I have not made any changes to retool-custom-component-manifest.json.js. retool-custom-component-manifest.json looks correct and I have not made any changes to it either.
I have tested it both with the latest version of @tryretool/custom-component-support with the version set to 1.7.0.
I followed the retool doc.
To add more context, I'm not able to sync with our Retool instance using npx retool-ccl dev but I'm able to deploy them using npx retool-ccl deploy.