在构建我的reaction/nextjs项目时,我收到了这个错误. 我试图以管理员身份打开VS代码,但仍然面临这个问题.
./node_modules/use-places-autocomplete/dist/index.d.ts:21:24
Type error: Type expected.
19 | export type Suggestion = google.maps.places.AutocompletePrediction;
20 |
> 21 | export type Status = `${google.maps.places.PlacesServiceStatus}` | "";
| ^
Windows 10 machine
Node version 14.17.5
Package.json
react 17.0.2
typescript ^3.7.2
将ts升级到4.1.0会出现此错误->;E/launcher - Error: TSError: ⨯ Unable to compile TypeScript