Skip to content

Commit 7f809e4

Browse files
New topic from backlog
1 parent eb44172 commit 7f809e4

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
page_id: 35e9465b-f723-4beb-a3e2-594d6b6329d2
3+
title: Troubleshoot code sync errors
4+
sidebar:
5+
order: 3
6+
relatedArticles:
7+
- 85c135db-f55a-4edf-8d1b-0af4140c1925
8+
- 261fb4ed-83e5-4f92-8f52-8da22749a92e
9+
---
10+
11+
If you've got your repo synced to pass code to Kinde, for use in custom page code or workflows, you may encounter errors from time to time. Here's some common ones and how to solve.
12+
13+
## Deployment failed: More than one workflow assigned to this trigger
14+
15+
Each trigger is mapped to a single workflow, make sure you don’t have any existing workflows already using the trigger.
16+
17+
## No default function exported
18+
19+
Kinde expects a default function to be exported. Make sure the format is correct:
20+
21+
```jsx
22+
// Pages
23+
export default async function Page(event) {
24+
25+
return "<div>Page content</div>";
26+
}
27+
28+
// Workflows
29+
export default async function Workflow(event) {
30+
31+
// Workflow code here
32+
}
33+
```
34+
35+
## Workflow ID is required
36+
37+
Workflows require a unique ID to be set in the `workflowSettings` object.
38+
39+
If you do have an ID set in your code this indicates that the page could not compile, and therefore the settings could not be read.
40+
41+
## Sync log showing no pages and no workflows
42+
43+
Technically the sync was successful but Kinde was unable to find any pages or workflows in your repo. Check you `kindeSrc` file and default exports.
44+
45+
## No matching export in "kindeKnownPackage: https://cdn.jsdelivr.net/npm/@kinde/infrastructure@latest/+esm" for import <xxxxx>
46+
47+
Occurs if you are trying to use a method from the Kinde infrastructure package that doesn’t exist. Check your imports.
48+
49+
## Runtime error: `x` is not defined at `y`
50+
51+
Check your code for undefined variable usage.
52+

0 commit comments

Comments
 (0)