gpt4 book ai didi

ionic-framework - ionic serve --lab 不显示不同的平台 View

转载 作者:行者123 更新时间:2023-12-05 08:42:24 26 4
gpt4 key购买 nike

我最近一直在尝试 ionic labs 查看一试。从文档中可以看出,它就像命令 ionic serve --lab 一样简单。但这只显示正常的 ionic serve view 而不是 android 和 iphone view 。我没有看到任何错误。

$ ionic serve -l

> ionic-hello-world@ ionic:serve /home/raj/ionic/bookemon
> ionic-app-scripts serve "--v2" "--lab" "--address" "0.0.0.0" "--port" "8100" "--livereload-port" "35729"

[12:10:35] ionic-app-scripts 1.0.0
[12:10:35] watch started ...
[12:10:35] build dev started ...
[12:10:35] clean started ...
[12:10:35] clean finished in 6 ms
[12:10:35] copy started ...
[12:10:35] transpile started ...
[12:10:39] transpile finished in 3.58 s
[12:10:39] webpack started ...
[12:10:39] copy finished in 3.74 s
[12:10:46] webpack finished in 6.89 s
[12:10:46] sass started ...
[12:10:47] sass finished in 719 ms
[12:10:47] build dev finished in 11.23 s
[12:10:47] watch ready in 11.31 s
[12:10:47] dev server running: http://localhost:8100/

这是我的 ionic 信息

Your system information:

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.6
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.0.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.4
Node Version: v7.2.1
Xcode version: Not installed

不确定这里发生了什么。我尝试重新安装 ionicnpm_modules 但它不起作用。有什么帮助吗?提前致谢。

最佳答案

您确定要打开 http://localhost:8101/ionic-lab 而不仅仅是 http://localhost:8101 吗?

  1. 运行 ionic serve --labionic serve -l
  2. 转到 http://localhost:8101/ionic-lab

注意

  • localhost:8101 加载普通 View 并
  • localhost:8101/ionic-lab 加载带有各种平台选项的 View

关于ionic-framework - ionic serve --lab 不显示不同的平台 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41918534/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com