aws / amazon-chime-sdk-js

A JavaScript client library for integrating multi-party communications powered by the Amazon Chime service.
Apache License 2.0
699 stars 473 forks source link

error TS1023: An index signature parameter type must be either 'string' or 'number' #2885

Open neno76 opened 2 months ago

neno76 commented 2 months ago

After new install always ../../../node_modules/@types/babel__traverse/index.d.ts(314,10): error TS1023: An index signature parameter type must be either 'string' or 'number'. ../../../node_modules/@types/ws/index.d.ts(321,18): error TS2315: Type 'Server' is not generic. ../../../node_modules/@types/ws/index.d.ts(321,34): error TS2315: Type 'Server' is not generic.

Error: Command failed: ./node_modules/typescript/bin/tsc --build config/tsconfig.red.json

I tried with node v18 and node v20.

Is something regard the @types/ws package version ?

the log: added 576 packages, and audited 1191 packages in 8s

133 packages are looking for funding run npm fund for details

10 vulnerabilities (5 moderate, 4 high, 1 critical)

To address issues that do not require attention, run: npm audit fix

To address all issues, run: npm audit fix --force

Run npm audit for details. moreno@neno browser % npm run build

amazon-chime-sdk-js-demo@2.0.0 build npm run deps && npm install && tsc && npm run build:fast

amazon-chime-sdk-js-demo@2.0.0 deps cd ../.. && npm run build

amazon-chime-sdk-js@3.22.0 prebuild ruby script/conditional-install

node_modules is up to date.

amazon-chime-sdk-js@3.22.0 build node script/barrelize.js && node script/generate-version.js && npm run red && npm run tsc:src && npm run tsc:guides && npm run copy

Build description: { "hash": "79d7405", "raw": "v3.22.0", "semverString": "3.22.0" }

amazon-chime-sdk-js@3.22.0 red node script/generate-red-worker-code.js

amazon-chime-sdk-js@3.22.0 prebuild ruby script/conditional-install

node_modules is up to date.

../../../node_modules/@types/babel__traverse/index.d.ts(314,10): error TS1023: An index signature parameter type must be either 'string' or 'number'. ../../../node_modules/@types/ws/index.d.ts(321,18): error TS2315: Type 'Server' is not generic. ../../../node_modules/@types/ws/index.d.ts(321,34): error TS2315: Type 'Server' is not generic.

Error: Command failed: ./node_modules/typescript/bin/tsc --build config/tsconfig.red.json

hensmi-amazon commented 3 weeks ago

Are you still running into this? We haven't been able to reproduce.