You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all - great idea and great library. If it works it works great! but I'm having a hard time making it run inside a cloud function. This is my function for reference
/** @description Given `cities` a list of city names with country codes,
* returns a the same list with added latitude, longitude. */
function hidrateCitiesCoordinates(cities: TripPoint[]): (TripPoint & { lat: number, lng: number })[] | void { }
export const hidrateCitiesCoordinatesAI = toAIFunction(hidrateCitiesCoordinates)
I could make it work locally in plain typescript app ran with tsup-node or ts-node
Describe the bug
I attempted to run it in the Google Cloud Functions environment which is "compiled" to javascript.
I get this error
and Indeed in the js files there is no implementation of the function
import { toAIFunction } from "@typeai/core";
function hidrateCitiesCoordinates(cities) {
}
var hidrateCitiesCoordinatesAI = toAIFunction(hidrateCitiesCoordinates);
First of all - great idea and great library. If it works it works great! but I'm having a hard time making it run inside a cloud function. This is my function for reference
I could make it work locally in plain typescript app ran with
tsup-node
orts-node
Describe the bug
I attempted to run it in the Google Cloud Functions environment which is "compiled" to javascript.
I get this error
and Indeed in the js files there is no implementation of the function
tsconfig.json
I also did the step with
deepkit-type-install
Is it even possible to achieve this?
Thank you.
The text was updated successfully, but these errors were encountered: