Skip to content

Commit 2ca2c59

Browse files
Merge pull request #471 from kinde-oss/Feat/Git-Sync-error-codes
New topic from backlog: Code errors
2 parents eb44172 + 55dfe7e commit 2ca2c59

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 synced your repository to pass code to Kinde for custom pages or workflows, you may encounter errors from time to time. Here are some common issues and how to resolve them.
12+
13+
## Deployment failed: More than one workflow assigned to this trigger
14+
15+
Each trigger can be mapped to only one workflow. Make sure you don’t already have a workflow using the same 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 an ID is present in your code, this usually means the page failed to compile and 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 your `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)