TS1005: ',' expected.
GonEbal opened this issue · 3 comments
GonEbal commented
Prerequisites
- I confirm my issue is not in the opened issues
- I confirm the Frequently Asked Questions didn't contain the answer to my issue
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"
Expected behavior
TS1005: ',' expected.
errors should not be present
kettanaito commented
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.