ionic-team / ionic-team/ionic-cli
Namespace 'NodeJS' has no exported member 'WriteStream'.
- Ngôn ngữ chính
- TypeScript
- Star
- 2k
- Fork
- 682
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
**Ionic version:** (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] **2.x**
[ ] **3.x**
[x] **4.x**
**I'm submitting a ...** (check one with "x")
[x] bug report
[ ] feature request
**Current behavior:**
I am just trying to serve my application and it throws this:
_node_modules/@types/inquirer/index.d.ts
Namespace 'NodeJS' has no exported member 'WriteStream'.
Namespace 'NodeJS' has no exported member 'ReadStream'._
**Expected behavior:**
Serve the application.
**Steps to reproduce:**
```
`ionic serve`
```
**Other information:**
I am not sure if that could be the problem, but I recently changed from Windows to Mac.
**Ionic info:** :
```
Ionic:
ionic (Ionic CLI) : 4.0.1 (/Users/eduardogodoy/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.6
Cordova:
cordova (Cordova CLI) : not installed
Cordova Platforms : none
System:
NodeJS : v8.11.3 (/usr/local/bin/node)
npm : 5.6.0
OS : macOS High Sierra
```
Hướng dẫn đóng góp
Hướng nghiên cứu
Start by reproducing the failure with `ionic serve`, then inspect `node_modules/@types/inquirer/index.d.ts` and the installed Node.js type definitions mentioned in the error. Determine which dependency or type version causes the missing `NodeJS.WriteStream` and `ReadStream` members; done means the Ionic app serves without these TypeScript errors.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- node.js, typescript
- Lĩnh vực
- cli
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100