-
-
Notifications
You must be signed in to change notification settings - Fork 27.2k
Closed
Description
Describe the bug
create-react-app with typescript, yarn start failed
Did you try recovering your dependencies?
NaN
Which terms did you search for in User Guide?
NaN
Environment
NaN
Steps to reproduce
npx create-react-app my-app --template typescript
cd my-app
yarn startExpected behavior
Start normally
Actual behavior
Reproduced by multiple participants.
TypeScript error in C:/work-place/github/work-repo/my-app/node_modules/@types/testing-library__react/node_modules/pretty-format/build/index.d.ts(7,13):
'=' expected. TS1005
5 | * LICENSE file in the root directory of this source tree.
6 | */
> 7 | import type * as PrettyFormat from './types';
| ^
8 | /**
9 | * Returns a presentation string of your `val` object
10 | * @param val any potential JavaScript object
Related PR:
It related to package pretty-format: pretty-format/src/index.ts
import style = require('ansi-styles');
import type * as PrettyFormat from './types';From commit history, we can see there is a related Pull Request two days ago, which changed:
From
import * as PrettyFormat from './types';To
import type * as PrettyFormat from './types';Guessing it's related
Related S.O. questions
vladdekhanov, Czarke, yatskivp, bmz1, shihfu and 9 more