Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Live reload not working on my android device

未关闭
#4,799 0 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
android, angular, node.js, typescript

调研方向

首先,使用所列出的 Ionic、Angular、Node.js、Cordova、Android 和 Windows 版本复现 live reload。检查涉及 @angular/compiler-cli 和 @ionic/angular-toolkit 的 build-angular 路径的 ES 模块错误;当 live reload 在没有 require/import 失败的情况下启动时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
TypeScript
星标
2k
派生
681
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ionic-team/ionic-cli 的其他 Issue

查看 ionic-team/ionic-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。