mswjs/msw

TS1005: ',' expected.

GonEbal opened this issue · 3 comments

Prerequisites

Environment check

  • I'm using the latest msw version
  • I'm using Node.js version 18 or higher

Browsers

Chromium (Chrome, Brave, etc.)

Reproduction repository

https://github.com/mswjs/examples

Reproduction steps

I followed these steps to set up msw in storybook: https://storybook.js.org/docs/writing-stories/mocking-data-and-modules/mocking-network-requests

Current behavior

Getting TS1005: ',' expected. errors.

Versions:
Global:
npm: 8.19.2
node: 18.12.0
Repo:
"typescript": "4.4.4"
"msw": "2.6.4"
"msw-storybook-addon": "2.0.4"

Screenshot 2024-11-14 at 12 19 19 PM

Expected behavior

TS1005: ',' expected. errors should not be present

Hi, @GonEbal. Thanks for reporting this.

MSW requires TypeScript 4.8 and higher, you seem to be using TS 4.4, which has reached end-of-life. Please upgrade the TypeScript version and have the issue solved.