0

enter image description here Each dependency is properly installed . The error is specific to the line :

const result = await summarizer.run(
        `Summarize the following text: ${event.data.value}`
      );

and the error is :

TypeError: Cannot read properties of undefined (reading 'step')
    at async V1InngestExecution.userFnToRun (src\inggest\functions.ts:28:21)
  26 |       });
  27 |
> 28 |       const result = await summarizer.run(
     |                     ^
  29 |         `Summarize the following text: ${event.data.value}`
  30 |       );
  31 |       console.log("Summarizer result:", result);        
 POST /api/inngest?fnId=visiora-development-hello-world&stepId=step 200 in 124msenter image description here
1
  • 2
    Please add code and errors as text (using code formatting), not images. Images are problematic for many reasons, including that they don't allow copy-pasting text for testing or searching. Commented Nov 10 at 12:26

1 Answer 1

-1

I faced the same issue after upgrading to the latest version 3.44.5. I couldn't find significant update in the official docs to address whether or not anything changed drastically in the SDK. For the time being I rolled back to 3.44.2 which worked for me.

npm i [email protected]

Run this in the terminal, hopefully it would solve the issue for you and also gemini-1.5-flash and others from 1.5 series of models have been long depreciated by google may be go with something newer like gemini-2.5-flash.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.