vite-plugin-env-compatible icon indicating copy to clipboard operation
vite-plugin-env-compatible copied to clipboard

An error ocurred with Teams JavaScript Client Library (@microsoft/teams-js)

Open karamem0 opened this issue 1 year ago • 0 comments

Hi,

I am building a Teams app (Microsoft Teams) and I got an error when updating packages.

Error message

Uncaught TypeError: Cannot read properties of undefined (reading 'fd')
    at n20.useColors (@microsoft_teams-js.js?v=3fe307ba:1390:104)
    at Function.t14 (@microsoft_teams-js.js?v=3fe307ba:153:55)
    at @microsoft_teams-js.js?v=3fe307ba:1660:13

Packages

  • vite: 5.4.10
  • vite-plugin-env-compatible: 2.0.1
  • @microsoft/teams-js: 2.30.0

Description

The useColors function is in debug.js. The functons accesses process.stderr.fd but stderr is undefined.

https://github.com/debug-js/debug/blob/bc60914816e5e45a5fff1cd638410438fc317521/src/node.js#L155

karamem0 avatar Oct 23 '24 07:10 karamem0