Skip to content

[BUG]: realtime-conversational-agent missing lib #382

@tdigangi

Description

@tdigangi

Name of sample affected

realtime-conversational-agent

Description of issue

Missing dependancies/utils: @/lib/utils as this line .gitignore is preventing you from pushing this lib to git.

Environment

npm --version
11.4.2

Reproduction steps or code

Following the readme instructions.

npm run dev

Error log

(.venv)mac:client$ npm run dev

> [email protected] dev
> next dev --turbopack

   ▲ Next.js 15.5.3 (Turbopack)
   - Local:        http://localhost:3000
   - Network:      http://192.168.86.34:3000

 ✓ Starting...
Attention: Next.js now collects completely anonymous telemetry regarding usage.
This information is used to shape Next.js' roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://nextjs.org/telemetry

 ✓ Ready in 676ms
 ○ Compiling / ...
 ✓ Compiled / in 1505ms
 ⨯ ./src/hooks/useLiveConnection.ts:2:1
Module not found: Can't resolve '@/lib/utils'
  1 | import { useState, useRef, useCallback } from "react";
> 2 | import { arrayBufferToBase64, base64ToArray } from "@/lib/utils";
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  3 | import { StructuredAgentEvent } from "@/components/SidePanel";
  4 |
  5 | const RECORDER_WORKLET_PATH = "/audio-recorder-worklet.js";

Import map: aliased to relative './src/lib/utils' inside of [project]/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions