<#C088ZNU7QQ5|ask-ai> Getting a build error with A...
# ask-ai
f
#ask-ai Getting a build error with Agent framework (TypeScript):
Copy code
Ignored build scripts: @ffmpeg-installer/linux-x64, esbuild, onnxruntime-node, protobufjs, sharp.
Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.
Are you aware of any concerns relating to this? Is there a solution? Is it actually a problem?!
t
Thanks for reaching out, Steve. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd love to help you get this sorted out! Could you share a bit more about your setup? For example: • Are you using a particular version of the Agent framework or pnpm? • Have you recently updated any dependencies? • Are you running this in a specific environment, like a CI/CD pipeline or local development? Knowing these details will really help me understand what's going on and find the best solution for you. Sources: plugins/livekit/package.json
f
pnpm v10. Up to date Agents Typescript version. I see the message when building locally, or when it builds a Docker image on
render.com
. The
pnpm approve-builds
command is interactive, and is not suitable for scripted installs.
t
Thank you for reaching out! While the
pnpm approve-builds
command isn’t specifically covered in the documentation, I’m happy to share some helpful tips based on what’s worked well for managing dependencies in LiveKit projects: • Try using
pnpm download-files
during your Docker build process. This way, you can pre-download important files and binaries for dependencies like
@ffmpeg-installer/linux-x64
and
sharp
, which helps avoid any runtime downloads or the need for interactive approvals. • Also, make sure to run
pnpm install --frozen-lockfile
. This keeps your builds consistent and prevents unexpected changes in dependencies. I hope these steps make things smoother and help you skip interactive commands like
approve-builds
when working in non-interactive environments. If you have any questions or need more details, please don’t hesitate to ask—I’m here to help! Sources: Builds and Dockerfiles | LiveKit Docs | Agent Deployment & Docker Configuration | livekit/livekit_composite | DeepW...