Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 运行到 app 代码更新后页面白屏 #50

Open
wll8 opened this issue Apr 7, 2024 · 16 comments
Open

fix: 运行到 app 代码更新后页面白屏 #50

wll8 opened this issue Apr 7, 2024 · 16 comments

Comments

@wll8
Copy link

wll8 commented Apr 7, 2024

Bug report(问题描述)

同时运行 h5 和 app (pnpm dev:app),修改代码后,h5正常更新,但 app 内页面白屏了,重新 pnpm dev:app ,再重新运行时可以看到更新。然后再修改,再白屏。

image

疑似自动导入功能相关问题。

Steps to reproduce(问题复现步骤)

env (环境)

使用的当前仓库的 demo 分支 3bf4ea2

  • node v18.19.0
  • pnpm 8.12.1
  • vscode 1.87.2
  • os win10
  • hbx 4.08
@echofly
Copy link

echofly commented Apr 18, 2024

大佬,你这是用的什么安卓模拟器软件啊?
image

@wll8
Copy link
Author

wll8 commented Apr 18, 2024

网易mumu

@echofly
Copy link

echofly commented Apr 18, 2024

网易mumu

好用吗?比起Android Studio的模拟器怎么样?

@wll8
Copy link
Author

wll8 commented Apr 18, 2024

没有对比过,不常用。

@echofly
Copy link

echofly commented Apr 18, 2024

OK,感谢

@echofly
Copy link

echofly commented Apr 18, 2024

这个问题我也遇到了,你有解决吗?我是改用unibest的hbx模版了,一样可以在vscode中编码,用hbx来运行,这种方式不会出现这个问题。

@wll8
Copy link
Author

wll8 commented Apr 18, 2024

没有解决,只能每次重新打包重新运行。感觉这个框架还是有很多基本的没有完善。

@echofly
Copy link

echofly commented Apr 18, 2024

是的,感觉做做小程序 h5还可以,app有点冒险,用hbx模版保险点

@wlh928043590
Copy link

一样 请问解决了吗

@Nokecy
Copy link

Nokecy commented Apr 23, 2024

这个问题是不是必须使用hbx版本 @boxjohn

@codercup
Copy link
Owner

codercup commented May 8, 2024

我的MAC电脑+ios模拟器一直没问题,不懂window的痛。尴尬了~~

@giserman001
Copy link

me too

@wukongkong
Copy link

cli 更新之后应该可以了,hbuilder x 更新之后解决了

@Nokecy
Copy link

Nokecy commented May 17, 2024

@wukongkong 更新到cli哪个版本

@wukongkong
Copy link

@wukongkong 更新到cli哪个版本

最新版本就行
直接用 hb 打开根目录,不要打开 app 目录,然后在 hb 里面执行右键编译(非命令行),这时候走的编译是 hbx 内部的

@wll8
Copy link
Author

wll8 commented May 20, 2024

然后在 hb 里面执行右键编译(非命令行) 的话应该是相当于还没有解决,算是暂时只能使用 hb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants