Custom component libraries with named imports

  1. My goal: Building custom components with named components
  2. Issue: Named components are ignored
  3. Steps I've taken to troubleshoot: Rebuilt custom components, watched the manifest files
  4. Additional info: (Cloud or Self-hosted, Screenshots)

Hi all, I’m taking custom components for a spin for the first time. The official docs work fine and I’m able to accomplish what I want. However I cannot move the custom component out of index.tsx and have it built, no matter how I try to import it from a separate file (e.g. Barrel File Pattern).

A comment in a related issue references using named imports (which would be incredibly helpful for code organisation), but I’ve had no luck with them.

Perhaps the powers that be could update the example github repo with a working example?

1 Like

Hi @abeechin ,

I’ve been creating Custom Components in Retool for some time and haven’t run into this roadblock.

If you have a github repo or minimal reproducible code example, I’d be more than happy to take a look for you.

1 Like

Hey @abeechin! Unfortunately, I’m not seeing any screenshots attached to your original post? And along with @mitchmess, I would also be happy to take a look if you’d like! One of my responsibilities at work is building out and maintaining our custom component library, so I have a little experience I could offer if a link to your repo is available. :slightly_smiling_face: