It looks like most of the components in the new gallery repo are missing a top-level tsconfig.json file. You should be able to create one that sits alongside package.json and paste in the following:
Glad to hear it! In general, this new gallery repository is a bit of an experiment and we're still thinking through how to best make custom components shareable. My personal recommendation is to maintain a personal library based off of the template and then manually add in any new components that look interesting!
Hi @mikeS , echoing @Darren ‘s response here. The gallery was more meant as a way to inspire folks and show them what was possible. Any of the components you see there you can bring over into your own repo, but the gallery repo wasn’t meant to be installable directly (mostly because there are so many varied components we figured folks wouldn’t want to use them all).
Ok, I'm a little lost here. I tried importing the component from yesterday's video on AI-Powered custom component and I get this after logging in with our token.
Unhandled error: {
err: Error: Could not find Library with name (AIEditor). Please check your package.json retoolCustomComponentLibraryConfig value.
at Object.deployCommand [as handler] (path\Retool\retool-ai-editor\node_modules@tryretool\custom-component-support\commands\deploy\deploy.js:31:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5),
msg: null
}
So, then I update package.json with this and I see the component in our instance but it replaced the one I added yesterday.
"retoolCustomComponentLibraryConfig": {
"name": "OurComponents",
"label": "Our Custom Components",
"description": "A library full of great things",
"entryPoint": "src/index.tsx",
"outputPath": "dist"
}
How do we add multiple components to our library?
I think you guys need to produce a video, with the intent of presenting to an audience that doesn't even have a library setup yet, that shows how to take a simple component or repo of at least 2 components and install them both. I was hoping that the video from yesterday would show that. Cover the process from square one.
I'm trying to install the smart-pdf-viewer into our library but still now sure how to do this. Here is what I've done:
Opened custom gallery repo
Git pull
Went to components/smart-pdf-viewer
Did npm install
Tried npx retool-ccl deploy
Got error:
Unhandled error: {
err: Error: Could not find Library with name (SmartPdf). Please check your package.json retoolCustomComponentLibraryConfig value.
at Object.deployCommand [as handler] (C:\path\custom-component-gallery\components\smart-pdf-engine\node_modules@tryretool\custom-component-support\commands\deploy\deploy.js:31:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5),
msg: null
Please let me know what I'm doing wrong. All I want to do is deploy this component to our existing library!