Replies: 4 comments 1 reply
-
|
Looks like some schema or types mismatch. 'Can you create & share an ephemeral repository which could be used to replicate the issue with @ENNA-Egor |
Beta Was this translation helpful? Give feedback.
-
|
Last commit. |
Beta Was this translation helpful? Give feedback.
-
|
The problem has been solved. Apparently there was some kind of glitch. The app launches, but the type issue remains. I haven't found a solution yet. Thank you. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you. It helped. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create Custom APIs according to the README example. However, in the
lib/conveyor/handlers/app-handler.tsfile, I get an error in the linehandle('save-user-preference', async ({ key, value }) => {Argument of type '({ key, value }: { key: string; value: string; }) => Promise<boolean>' is not assignable to parameter of type '(args_0: { key: string; value: string; }) => boolean'. Type 'Promise<boolean>' is not assignable to type 'boolean'.ts(2345)Similarly, in the component, in the line
conveyor.app.getAppInfo().then(setAppInfo), I get the following error.Argument of type 'Dispatch<SetStateAction<null>>' is not assignable to parameter of type '(value: { name: string; version: string; platform: string; }) => void | PromiseLike<void>'. Types of parameters 'value' and 'value' are incompatible. Type '{ name: string; version: string; platform: string; }' is not assignable to type 'SetStateAction<null>'. Type '{ name: string; version: string; platform: string; }' provides no match for the signature '(prevState: null): null'.ts(2345)What could be the problem? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions