Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with dgram #606

Open
ameshkin opened this issue Aug 2, 2024 · 1 comment
Open

Issues with dgram #606

ameshkin opened this issue Aug 2, 2024 · 1 comment
Labels
bug Something isn't working stale

Comments

@ameshkin
Copy link

ameshkin commented Aug 2, 2024

Analysis

I will fork this repo to get around this issue that I can't figure out. I am using next.js and after fixing other issues, I get to this. I'm also using mac silicon which was another issue with a package homebridge requires.

⨯ ./node_modules/@homebridge/camera-utils/lib/rtp-splitter.js:13:1

Module not found: Can't resolve 'dgram'

Expected Behavior

Homebridge should be able to find required package

Steps To Reproduce

Install homebridge on a next.js site and go to any page

Logs

Import trace for requested module:
./node_modules/@homebridge/camera-utils/lib/index.js
./src/ring-client-api/streaming/streaming-session.ts
./src/ring-client-api/ring-camera.ts
./src/ring-client-api/index.ts
./src/app/admin/home/page.tsx
 ⨯ ./node_modules/@homebridge/camera-utils/lib/rtp-splitter.js:13:1
Module not found: Can't resolve 'dgram'

Configuration

Next.js v13.2.3

Environment

  • OS: MAC
  • Software: Next.js v13.2.3
  • Node: v18.17.0
  • npm: 10.8.0

Process Supervisor

hb-service

Additional Context

No response

@ameshkin ameshkin added the bug Something isn't working label Aug 2, 2024
@dgreif
Copy link
Collaborator

dgreif commented Oct 12, 2024

@ameshkin that's really odd. Are you using some custom build of Node that doesn't have everything built? dgram is a built-in module in Node, so it should definitely be available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

3 participants