fugufish
fugufish2w ago

I'm having problems integrating launch darkly

// convex/convex.config.ts
import { defineApp } from "convex/server";
import launchdarkly from "@convex-dev/launchdarkly/convex.config";

const app = defineApp();

app.use(launchdarkly);

export default app;
// convex/convex.config.ts
import { defineApp } from "convex/server";
import launchdarkly from "@convex-dev/launchdarkly/convex.config";

const app = defineApp();

app.use(launchdarkly);

export default app;
Failed to analyze config.js: Uncaught Error: Component definition does not have the required componentDefinitionPath property. This code only works in Convex runtime.
Failed to analyze config.js: Uncaught Error: Component definition does not have the required componentDefinitionPath property. This code only works in Convex runtime.
Also, the library has a vulnerability (which I submitted a PR on) https://github.com/get-convex/launchdarkly
GitHub
GitHub - get-convex/launchdarkly: A Convex component that syncs Lau...
A Convex component that syncs LaunchDarkly feature flags - get-convex/launchdarkly
3 Replies
Convex Bot
Convex Bot2w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
ballingt
ballingt2w ago
@fugufish what version of convex are you using? oh I see it nevermind What is the filename where you've saved the code you pasted in? Is it convex/config.ts instead of convex/convex.config.ts? Thanks for notice on the vulnerability! commented on your PR https://github.com/get-convex/launchdarkly/pull/12
fugufish
fugufishOP2w ago
Missed this, I inadvertantly renamed the file thanks for calling that out replied

Did you find this page helpful?