Ionic CLI 6.x [信息]正在等待与vue-cli-service的连接...和100% CPU

ebdffaop  于 2022-12-08  发布在  Ionic
关注(0)|答案(1)|浏览(222)

我在一个新的Vue 3项目中使用了离子6,当我运行npx ionic serve时,它运行构建并正确地服务于项目(当文件更改时也正确地重建)。但是它记录了这个信息消息,并在100%运行处理器,显然是在自旋锁中。

> npx ionic serve                                                                                                                                      main [⇡] 
> vue-cli-service serve
[vue-cli-service]  INFO  Starting development server...
[38%] building (23/196 modules)
Build finished at 11:42:48 by 0.000s

[vue-cli-service]   App running at:
[vue-cli-service]   - Local:   http://localhost:8100/ 
[vue-cli-service]   - Network: http://192.168.50.45:8100/
[vue-cli-service]   Note that the development build is not optimized.
[vue-cli-service]   To create a production build, run npm run build.
No issues found.
[INFO] Waiting for connectivity with vue-cli-service...
[INFO] Waiting for connectivity with vue-cli-service...
[repeats until process is killed]

我相信我使用的是最新的Ionic和Vue版本:package.json:
第一次
有什么解决办法吗?

x759pob2

x759pob21#

尝试在“capacitor.config.json”(或“capacitor.config.ts”)中添加以下条目:

"server" : {
"url" : "http://localhost:8100/" // Address of the server running locally
},

这个问题只在我尝试在MacOS系统中运行我的Ionic项目时出现。以前在Ubuntu安装中运行得很好。

相关问题