Msw: Typescript error: expecting "," in type PickLastInTuple (utils/internal/compose)

Created on 15 Dec 2020  路  4Comments  路  Source: mswjs/msw

Describe the bug

After installing and following the steps provided in the documentation, I tried to run my app (CRA) but a Typescript compilation error arise (see screenshot attached).

Environment

  • msw: ^0.24.2
  • nodejs: 15.3.0
  • npm: 7.0.14
  • typescript: ^3.9.5
  • react: ^16.13.1"
  • react-dom: ^16.13.1"
  • react-scripts: 3.2.0

tsconfig.json

{
  "compilerOptions": {
    "target": "es2016",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "preserve"
  },
  "include": ["src"]
}

To Reproduce

Steps to reproduce the behavior:

  1. Follow the complete guide up until Verify and Inspect
  2. Run your CRA app
  3. See error

Expected behavior

I expected the app to build succesfully.

Screenshots

image

bug

All 4 comments

Hi @maurealtrends, I believe this is a duplicate of #491. Is it possible for you to update TypeScript to v4?

Hi @maurealtrends, I believe this is a duplicate of #491. Is it possible for you to update TypeScript to v4?

I'll try right now and get back to you as ASAP 馃槈

It worked!

Thank you very much and sorry for the inconvenience.

No problem. I'm happy that we could solve it so quickly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

baker-travis picture baker-travis  路  3Comments

veronesecoms picture veronesecoms  路  3Comments

otaciliolacerda picture otaciliolacerda  路  3Comments

mainfraame picture mainfraame  路  3Comments

dashed picture dashed  路  3Comments