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

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

Open
neno76 opened this issue Apr 29, 2024 · 0 comments

Comments

@neno76
Copy link

neno76 commented Apr 29, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant