About workflows
Workflows
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.
Each trigger can be mapped to only one workflow. Make sure you don’t already have a workflow using the same trigger.
Kinde expects a default function to be exported. Make sure the format is correct.
// Pagesexport default async function Page(event) {
return "<div>Page content</div>";}
// Workflowsexport default async function Workflow(event) {
// Workflow code here}
Workflows require a unique ID to be set in the workflowSettings
object.
If an ID is present in your code, this usually means the page failed to compile and the settings could not be read.
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.
"kindeKnownPackage:https://cdn.jsdelivr.net/npm/@kinde/infrastructure@latest/+esm" for import <xxxxx>
Occurs if you are trying to use a method from the Kinde infrastructure package that doesn’t exist. Check your imports.
x
is not defined at y
Check your code for undefined variable usage.