Skip to content

Cannot get the example on Nitro to run #22

@baptistemanson

Description

@baptistemanson

Here is the log of the server booting:

Discovering workflow directives 7ms
Created intermediate workflow bundle 3ms
Created steps bundle 15ms
Creating webhook route
✔ Nitro Server built in 219ms                                  nitro 12:05:28 PM
OpenTelemetry not available, tracing will be disabled
ReferenceError while running "wrun_01K8ATWEZJ9NVDXMC21EGND16P" workflow:

ReferenceError: Workflow "workflow//workflows/user-signup.ts//handleUserSignup" must be a function, but got "undefined" instead
    at file:///Users/xx/workflow/nitro-app/node_modules/@workflow/core/dist/workflow.js:436:19
    at trace (file:///Users/xx/workflow/nitro-app/node_modules/@workflow/core/dist/telemetry.js:72:22)
    at async file:///Users/xx/workflow/nitro-app/node_modules/@workflow/core/dist/runtime.js:225:36
    at async trace (file:///Users/xx/workflow/nitro-app/node_modules/@workflow/core/dist/telemetry.js:72:16)
    at async file:///Users/xx/workflow/nitro-app/node_modules/@workflow/core/dist/runtime.js:181:16
    at async file:///Users/xx/workflow/nitro-app/node_modules/@workflow/world-local/dist/queue.js:103:34
    at async Object.handler (file:///xx/workflow/nitro-app/node_modules/h3/dist/index.mjs:2004:19)
    at async Server.toNodeHandle (file:///xx/workflow/nitro-app/node_modules/h3/dist/index.mjs:2296:7)

Node 22. 

Also, the workflows/ folder being outside server/ gets me this error:

Image When I try to look at the status of the workflows:
[Warn] PORT environment variable is not set, using default port 3000
[Error] No workflow data directory found. Have you run any workflows yet?
[Warn] 
Check whether your data is in any of:
  /Users/xxworkflow/.next/workflow-data
  /Users/xx/workflow/.workflow-data
  /Users/xx/workflow/workflow-data

[Error] Error: No workflow data directory found

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions