【发布时间】:2019-06-30 19:03:03
【问题描述】:
我有一个 Ionic4 应用程序,我正尝试使用ionic serve 在我的 iPad 的 DevApp 上运行它。但是,它似乎只在本地服务...
ionic serve
> ng run app:serve --host=localhost --port=8100
[INFO] Waiting for connectivity with ng...
[INFO] Development server running!
Local: http://localhost:8100
Use Ctrl+C to quit this process
[INFO] Browser window opened to http://localhost:8100!
[ng] ℹ 「wdm」: wait until bundle finished: /
[ng]
[ng] Date: 2019-06-27T22:09:04.521Z
[ng] Hash: e5b1e27f4608e1891cc1
[ng] Time: 25929ms
[ng] chunk {_pages-private-new-order-order-confirmation-order-confirmation-module} _pages-private-new-order-order-confirmation-order-confirmation-module.js, _pages-private-new-order-order-confirmation-order-confirmation-module.js.map (_pages-private-new-order-order-confirmation-order-confirmation-module) 13.7 kB [rendered]
[ng] chunk {common} common.js, common.js.map (common) 6.24 kB
... and 164 additional chunks
[ng] ℹ 「wdm」: Compiled successfully.
我尝试将ionic serve --address ... 与我的 IP 地址一起使用,但出现此错误...
Provided host could NOT be bound. Please provide a different host address or hostname
我也试过ionic serve --devapp,但后来我得到了这个错误......
Data path ".builders['cordova-build']" should have required property 'class'.
我是 Ionic 的新手,所以我可能会遗漏一些基本的东西。有什么想法吗?
【问题讨论】:
-
尝试 ionic serve --address 0.0.0.0
-
添加了
External: http://192.168.170.234:8100,但仍然没有devapp的迹象
标签: ionic-framework ionic4 ionic-native ionic-devapp