livepeer / livepeer/livepeer-js

Bug: got module not found error if I don't install 'zod' dependency

Open
#24 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
9
Forks
6
PR merge metrics
No merged PRs in 30d

Description

I've installed livepeer sdk, but it doesn't work if I don't install zod library.
Here is full error:

 ⨯ ../../node_modules/livepeer/lib/base64.js:36:1
Module not found: Can't resolve 'zod'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
../../node_modules/livepeer/lib/sdks.js
../../node_modules/livepeer/sdk/sdk.js
../../node_modules/livepeer/index.js

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the installation and import path shown in the error, starting with lib/base64.js and the sdk.js and index.js entry points. Check how the zod dependency is declared or bundled so a fresh livepeer SDK install can load without an unexplained module-not-found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
next.js, typescript
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.