-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
white screen after build my app ? #1140
Comments
Hey @Adamkaram , Would you share your tauri.conf.json file or, at least, let us know if the |
this what u ask for whole my file { |
Thanks. I asked because we recently had other issues involving blank screens solved by enabling the |
i set it to false and try again it doesn't work too , but No tauri dev won't work for me tauri:dev Administrator privileges detected. Tauri doesn't work when running as admin, see Boscop/web-view#96 +0ms i open vs code under user privilage with same issue |
If you ran create-react-app with default settings and didn't alter them afterwards, you have to change distDir to "../build" (instead of "../dist") and devPath to port :3000 instead of :4000 (both inside tauri.conf.json). Of course you could also change this on the react side of things, but I don't know how off the top of my head. |
already i've bundel my app and change my build src , but what the point of change my port to 3000 insted of 4000 |
Did you at least try it out before saying that it doesn't make sense? I had the exact same problem like you when i started with tauri+react. But then again, i can just make up my assumptions by looking at your step-by-step instructions and your tauri.conf.js file, so maybe something is missing. |
@Adamkaram , I think you should try what @FabianLars proposed. |
first all respect for u i didn't mean to be shameless , but i was asking about the point of that |
it doesn't work it gives me white screen and same issue with run dev [tauri]: running dev npm ERR! A complete log of this run can be found in: |
Well, it seems like you're in an admin shell. Try running it inside a normal one (eg. cmd.exe or powershell etc. WITHOUT admin rights) |
yup i run yarn dev and it's working but same thing with white screen |
still a white screen on yarn dev? And you're sure the react server is running at the same time (in a different terminal)? And when we're at it, you also did the loopback thing described here: tauri.studio ? And just for the sake of I'll list everything i do everytime i create a new tauri+react app: pastebin.com. |
they say that WebView2 (Chromium) is Optional so i choose to not download it but anyway it works finally |
我的解决办法:把devPath的值由 http://localhost:3000 改为 http://127.0.0.1:3000 或 http://0.0.0.0:3000
|
This comment was marked as off-topic.
This comment was marked as off-topic.
????????这是怎么发现的??????? |
I was having same issue with using Tauri with NextJs. I just changed the build folder to dist and it worked! my package.json :
I added My tauri.conf.json :
Updated distDir to According to my observation , the I hope my solution creates an opinion about your problem. |
My investigation and solution:
Solution: BTW, I use KDE and set system proxy via the KDE system setting. Interesting to see tauri automatically respect that, and wonder what will happen in the release mode. If I have a misconfigured proxy as an end user, will tauri still not work? |
Yes, Tauri serves the frontend without any form of server so it will be unaffected. What may break are other network requests via the webview's |
In my case issue was on the Due to this reason was getting a white screen. After adding |
I am also getting the white screen but only in build and not dev... did you just do a clean index.html file in pages? [✔] Environment [-] Packages [-] App |
I'm getting a white screen in my svelte kit app. When I run |
i'm newcomer to tauri i love it becauze it using rust
To Reproduce
Steps to reproduce the behavior:
i just type those command
1-npx create-react-app tauri-tutorial
2-yarn add tauri
3-adding this to my package.json
"tauri": "tauri",
"dev": "npm run tauri dev",
"bundle": "tauri build",
4- npm run tauri init
5- npm run build
6- npm run bundle
every thing working fine to me at this point but when i try to open bunde app i see this every time without no change
even i colse it an reopen it again
should open my app with react basics logo as i don't touch any file in my app just simple app !
OS: windows 10
Node: v15.4.0
NPM: 7.0.15
Yarn: 1.22.5
Rustc: rustc 1.49.0 (e1884a8e3 2020-12-29)
is there is any extra work should i do before building my app or some tool are mising ?
The text was updated successfully, but these errors were encountered: