camera-utils
camera-utils copied to clipboard
Issues with dgram
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