#can't find getFunctionName at runtime

11 messages · Page 1 of 1 (latest)

gloomy vapor
ruby oxide
#

hmmm it should? is convex_server the correct thing here, the import should look like import { getFunctionName } from "convex/server";, maybe convex_server just how Vite transforms that

gloomy vapor
#

I copied the definitions over, and then got this function missing

#

anyApi

ruby oxide
#

anyApi comes from convex/_generated/api

gloomy vapor
#
/* eslint-disable */
/**
 * Generated `api` utility.
 *
 * THIS CODE IS AUTOMATICALLY GENERATED.
 *
 * Generated by convex@0.17.1.
 * To regenerate, run `npx convex dev`.
 * @module
 */

import { anyApi } from "convex/server";
#

somehow it seems like vite isn't including everything?

ruby oxide
#

There should be an export line there too

export const api = anyApi;
gloomy vapor
#

yes

#

there is on the next line

#

but I'm not using anyApi anywhere