简体   繁体   English

离子服务给出空白页

[英]ionic serve gives blank page

I have some more questions.我还有一些问题。 So I've tried many tutorials online, but whenever I try to ionic serve, it always displays a blank page in my browser.所以我在网上尝试了很多教程,但是每当我尝试离子服务时,它总是在我的浏览器中显示一个空白页面。 I googled and tried the solutions offered online, but they don't seem to be working.我用谷歌搜索并尝试了在线提供的解决方案,但它们似乎不起作用。 I'm not sure if there's something wrong with my ionic or just those tutorial, this is the tutorial i am currently following here .我不确定我的 ionic 或只是那些教程是否有问题,这是我目前正在关注的教程 Here is my ionic info, please let me know if you need more info.这是我的离子信息,如果您需要更多信息,请告诉我。 Thank you谢谢

Ionic Framework: @ionic/angular 6.2.0离子框架:@ionic/angular 6.2.0
@angular-devkit/build-angular: 14.1.0 @angular-devkit/schematics @angular-devkit/build-angular: 14.1.0 @angular-devkit/schematics
: 14.1.0 @angular/cli: 14.1.0 :14.1.0 @角/cli:14.1.0
@ionic/angular-toolkit: 6.1.0 @ionic/角度工具包:6.1.0

Cordova: Cordova:

Cordova CLI: 11.0.0 Cordova Platforms: android 10.1.2 Cordova CLI:11.0.0 Cordova 平台:android 10.1.2
Cordova Plugins: cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 3 other plugins) Cordova 插件:cordova-plugin-ionic-keyboard 2.2.0,cordova-plugin-ionic-webview 5.0.0,(和其他3个插件)

Utility:效用:

cordova-res: 0.15.4 native-run: 1.6.0科尔多瓦分辨率:0.15.4 本机运行:1.6.0

System:系统:

NodeJS: v16.16.0 (C:\Program Files\nodejs\node.exe) npm: 8.11.0 OS: Windows 10 NodeJS:v16.16.0 (C:\Program Files\nodejs\node.exe) npm:8.11.0 操作系统:Windows 10

First you need to add browser platform with the following command.首先,您需要使用以下命令添加浏览器平台。

ionic cordova platform add browser ionic cordova 平台添加浏览器

And then, you can run with然后,你可以运行

ionic cordova run browser ionic cordova 运行浏览器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM