Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Live reload not working on my android device

Đang mở
#4,799 0 bình luận 3 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
android, angular, node.js, typescript
Lĩnh vực
build-system, cli, mobile-dev

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện live reload với các phiên bản Ionic, Angular, Node.js, Cordova, Android và Windows được liệt kê. Kiểm tra lỗi mô-đun ES liên quan đến @angular/compiler-cli và đường dẫn build-angular của @ionic/angular-toolkit; hoàn tất khi live reload khởi động mà không gặp lỗi require/import.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

triage

Description:

Show this error when I live reload on my android device.

[ng] An unhandled exception occurred: Must use import to load ES Module: F:\AvirupIonicApp\GitNeedAGuy\ionic-needaguy\node_modules\@angular\compiler-cli\bundles\index.js
[ng] require() of ES modules is not supported.
[ng] require() of F:\AvirupIonicApp\GitNeedAGuy\ionic-needaguy\node_modules\@angular\compiler-cli\bundles\index.js from F:\AvirupIonicApp\GitNeedAGuy\ionic-needaguy\node_modules\@ionic\angular-toolkit\node_modules\@angular-devkit\build-angular\src\webpack\configs\common.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
[ng] Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from F:\AvirupIonicApp\GitNeedAGuy\ionic-needaguy\node_modules\@angular\compiler-cli\package.json.
[ng]
[ng] See "C:\Users\AVIRUP\AppData\Local\Temp\ng-gSN7CJ\angular-errors.log" for further details.

[ERROR] ng has unexpectedly closed (exit code 127).

My ionic info:

Ionic:

   Ionic CLI                     : 5.4.16 (C:\Users\AVIRUP\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 6.0.1
   @angular-devkit/build-angular : 13.0.4
   @angular-devkit/schematics    : 13.0.4
   @angular/cli                  : 13.0.4
   @ionic/angular-toolkit        : 5.0.3

Cordova:

   Cordova CLI       : 11.0.0
   Cordova Platforms : android 10.1.1
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 11 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 1.5.0

System:

   NodeJS : v12.20.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.14.8
   OS     : Windows 7
Ngôn ngữ chính
TypeScript
Star
2k
Fork
681
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ionic-team/ionic-cli

Tất cả issue của ionic-team/ionic-cli

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.