Hi all!
I'm trying to build a custom component (slider with more than 2 handles).
So far I've been following the steps described on that page: Build custom component libraries | Retool Docs.
It works smoothly until I type npx retool-ccl dev where the following error message returns.
Also, I did update @tryretool/custom-component-support.
Any idea on how to solve this or what I might be doing wrong?
Thanks a lot.
The error message:
$ npx retool-ccl dev
Generating & updating manifest...
X [ERROR] No matching export in "tryretool-custom-component-collections-global:@
tryretool/custom-component-support" for import "Retool"
src/index.tsx:4:9:
4 │ import { Retool } from '@tryretool/custom-component-support'
╵ ~~~~~~
Build succeeded.
Sending updated code to Retool ...
=============
Newer version of @tryretool/custom-component-support available!
Please upgrade using the appropriate npm/yarn commands to receive new features a
nd bug fixes:
yarn upgrade @tryretool/custom-component-support
npm update @tryretool/custom-component-support
See Build custom component libraries | Retool Docs fo
r more details.
Error while sending code to Retool {
error: ResponseError: Response returned an error code
at CustomComponentLibraryApi.request (C:\Users\Moi\Documents\Code\retool\n
ew-custom-component\node_modules@tryretool\custom-component-support\retool_clie
nt\runtime.js:213:15)
at process.processTicksAndRejections (node:internal/process/task_queues:10
5:5)
at async CustomComponentLibraryApi.customComponentLibrariesLibraryIdRevisi
onsPostRaw (C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modules
@tryretool\custom-component-support\retool_client\apis\CustomComponentLibraryAp
i.js:216:26)
at async CustomComponentLibraryApi.customComponentLibrariesLibraryIdRevisi
onsPost (C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modules@t
ryretool\custom-component-support\retool_client\apis\CustomComponentLibraryApi.j
s:229:26)
at async C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modu
les@tryretool\custom-component-support\build_components.js:234:36
at async C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modu
les\esbuild\lib\main.js:1495:27 {
response: Response {
status: 400,
statusText: 'Bad Request',
headers: Headers {
date: 'Tue, 29 Oct 2024 15:00:30 GMT',
'content-type': 'application/json; charset=utf-8',
'content-length': '102',
connection: 'keep-alive',
'x-request-id': '4adad1fe9a3cd17887b3128c55012c6c',
'cache-control': 'private',
'set-cookie': 'in_retool_canary_group=never; Path=/; Expires=Wed, 30 Oct
2024 15:00:30 GMT; Secure; SameSite=Strict',
'x-retool-api-version': '3.110.0-a37f2e7 (Build 208590)',
'retry-after': '33.732',
'x-ratelimit-limit': '300',
'x-ratelimit-remaining': '285',
'x-ratelimit-reset': 'Tue Oct 29 2024 15:01:04 GMT+0000 (Coordinated Uni
versal Time)',
etag: 'W/"66-TdGuhhep3w6ZAE9t7murxmHZjLo"',
'strict-transport-security': 'max-age=31536000; includeSubDomains'
},
body: ReadableStream { locked: false, state: 'readable', supportsBYOB: tru
e },
bodyUsed: false,
ok: false,
redirected: false,
type: 'basic',
url: 'https://quellevoitureelectrique.retool.com/api/v2/custom_component_l
ibraries/15941bf6-21a9-42b8-8a82-e26a2733a951/revisions'
}
}
}
X [ERROR] Response returned an error code [plugin zip-and-send]
C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modules\@tryret
ool\custom-component-support\retool_client\runtime.js:213:14:
213 │ throw new ResponseError(response, 'Response returned an ...
╵ ^
at CustomComponentLibraryApi.request (C:\Users\Moi\Documents\Code\retool\new
-custom-component\node_modules@tryretool\custom-component-support\retool_client
\runtime.js:213:15)
at process.processTicksAndRejections (node:internal/process/task_queues:105:
5)
at async CustomComponentLibraryApi.customComponentLibrariesLibraryIdRevision
╵ ~~~~~
at setup (C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modules\@tryretool\custom-component-support\build_component
s.js:229:19)
at handlePlugins (C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modules\esbuild\lib\main.js:1293:21)
at buildOrContextImpl (C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modules\esbuild\lib\main.js:979:5)
at Object.buildOrContext (C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modules\esbuild\lib\main.js:787:5)
at C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modules\esbuild\lib\main.js:2197:68
at new Promise ()
at Object.context (C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modules\esbuild\lib\main.js:2197:27)
at Object.context (C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modules\esbuild\lib\main.js:2037:58)
at buildAndDeployDevContiniously (C:\Users\Moi\Documents\Code\retool\new-custom-component\node_modules@tryretool\custom-component
-support\build_components.js:327:48)
2 errors
[watch] build finished, watching for changes...