【发布时间】:2021-08-26 19:38:54
【问题描述】:
当前行为
在使用ionic serve 命令测试我的 ionic 应用程序的构建时(在开发服务器上初始编译和加载应用程序之后),即使没有更改任何文件,也会导致应用程序重新编译(类似于实时重新加载)。这似乎无限地持续下去。
样本日志:
Date: 2021-06-09T16:49:20.399Z - Hash: 6ad0d92ddcbced3a4d48
[ng] 133 unchanged chunks
[ng] Time: 2112ms
[ng] ℹ 「wdm」: Compiled successfully.
[ng] ℹ 「wdm」: Compiling...
[ng] ℹ 「wdm」: wait until bundle finished: /common.js.map
[ng] ℹ 「wdm」: wait until bundle finished: /5.js.map
[ng] ℹ 「wdm」: wait until bundle finished: /referral-referral-module.js
[ng] ℹ 「wdm」: wait until bundle finished: /leaderboard-board-board-module.js
[ng] ℹ 「wdm」: wait until bundle finished: /tabs-tabs-module.js.map
[ng] ℹ 「wdm」: wait until bundle finished: /GothamRounded-Bold.otf
[ng] Date: 2021-06-09T16:49:23.177Z - Hash: 6ad0d92ddcbced3a4d48
[ng] 133 unchanged chunks
[ng] Time: 1980ms
[ng] ℹ 「wdm」: Compiled successfully.
[ng] ℹ 「wdm」: Compiling...
[ng] ℹ 「wdm」: wait until bundle finished: /leaderboard-board-board-module.js.map
[ng] ℹ 「wdm」: wait until bundle finished: /default~onboarding-phone-verify-phone-verify-module~profile-profile-module.js
[ng] ℹ 「wdm」: wait until bundle finished: /profile-profile-module.js
[ng] ℹ 「wdm」: wait until bundle finished: /community-community-module.js
[ng] ℹ 「wdm」: wait until bundle finished: /home-home-module.js.map
[ng] ℹ 「wdm」: wait until bundle finished: /wallet-wallet-module.js
[ng] ℹ 「wdm」: wait until bundle finished: /profile-settings-settings-module.js
[ng] ℹ 「wdm」: wait until bundle finished: /waitlist-waitlist-module.js
[ng] ℹ 「wdm」: wait until bundle finished: /marketplace-marketplace-module.js
[ng] ℹ 「wdm」: wait until bundle finished: /runtime.js
[ng] ℹ 「wdm」: wait until bundle finished: /polyfills.js
[ng] ℹ 「wdm」: wait until bundle finished: /styles.js
[ng] Date: 2021-06-09T16:49:25.972Z - Hash: 6ad0d92ddcbced3a4d48
[ng] 133 unchanged chunks
[ng] Time: 2137ms
[ng] ℹ 「wdm」: Compiled successfully.
[ng] ℹ 「wdm」: Compiling...
[ng] ℹ 「wdm」: wait until bundle finished: /main.js.map
[ng] ℹ 「wdm」: wait until bundle finished: /vendor.js.map
[ng] ℹ 「wdm」: wait until bundle finished: /common.js
[ng] ℹ 「wdm」: wait until bundle finished: /5.js
[ng] ℹ 「wdm」: wait until bundle finished: /tabs-tabs-module.js
[ng] Date: 2021-06-09T16:49:28.928Z - Hash: 6ad0d92ddcbced3a4d48
[ng] 133 unchanged chunks
[ng] Time: 2313ms
[ng] ℹ 「wdm」: Compiled successfully.
[ng] ℹ 「wdm」: Compiling...
[ng] ℹ 「wdm」: wait until bundle finished: /common.js.map
[ng] ℹ 「wdm」: wait until bundle finished: /referral-referral-module.js
[ng] ℹ 「wdm」: wait until bundle finished: /leaderboard-board-board-module.js
[ng] ℹ 「wdm」: wait until bundle finished: /home-home-module.js
[ng] ℹ 「wdm」: wait until bundle finished: /tabs-tabs-module.js.map
[ng] ℹ 「wdm」: wait until bundle finished: /5.js.map
[ng] Date: 2021-06-09T16:49:32.628Z - Hash: 6ad0d92ddcbced3a4d48
[ng] 133 unchanged chunks
预期行为
仅在我更改文件时重新编译的应用程序
我尝试了什么
- 即使我包含
--no-live-reload标志,该行为仍然会发生 - 如果我在关闭 VSCode 的终端中运行命令,该行为仍然会发生
- 重新启动计算机
- 更新的铬
- 已恢复到应用的早期版本
- 重新安装 npm 包
技术细节
- 操作系统:MacOS Big Sur
- npm: 6.14.8
- NodeJS:12.19.0
- 离子 CLI:5.14.16
- Ionic 框架:@ionic/angular 4.11.13
- @angular/cli: 8.1.3
【问题讨论】:
-
尝试重新安装 ionic 或更好,以将 ionic CLI 版本降级 1。
标签: node.js angular ionic-framework