versatica / mediasoup-client

mediasoup client side JavaScript library

Home Page:https://mediasoup.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

3.6.61 incorrectly moved debug from dependency to dev dependency

ebroder opened this issue · comments

Bug Report

Your environment

  • Operating system: Linux
  • Browser version: N/A
  • npm version:
  • mediasoup version:
  • mediasoup-client version: 3.6.61

Issue description

It looks like 769e1d8 moved the debug package from being a dependency to being a dev dependency. However, (non-test file) src/index.ts still imports debug:

import debug from 'debug';

This is a build failure in my project:

node_modules/mediasoup-client/lib/index.d.ts(1,19): error TS7016: Could not find a declaration file for module 'debug'. '/home/runner/work/jolly-roger/jolly-roger/node_modules/mediasoup-client/node_modules/debug/src/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/debug` if it exists or add a new declaration (.d.ts) file containing `declare module 'debug';`

Thanks. Fixed in 3.6.62.