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 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
+
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 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.
0 commit comments