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
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
+
exportdefaultasyncfunctionPage(event) {
24
+
25
+
return"<div>Page content</div>";
26
+
}
27
+
28
+
// Workflows
29
+
exportdefaultasyncfunctionWorkflow(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.
0 commit comments