Closed artooro closed 4 years ago
What version of MacOS? 10.15.5 works fine:
v10.15.6
Can confirm wails build -p
works too
@leaanthony yeah the raw template works fine, but the app I built from the template does not. I was hoping there would be some type of log from the built binary that would show me what is going on.
Ah, building with -d will dump logs when run from terminal
Ah thanks, I missed that flag. So with the debug logs everything looks nominal so unfortunately doesn't help me resolve the actual issue. I'll have to rip out pieces of my code until it's narrowed down.
Spoke too soon, looks like in debug mode it's also possible to open the javascript console in the app window, where I noticed this error. "Unhandled Navigation Error".
So would I be correct that angular routing does not work in a Wails app?
I can't really help you with an Angular issue, but what I can do is point you to how the Vue and React people do routing and perhaps there's a similar solution for Angular? https://wails.app/guides/
If you find the answer, we'll update the docs :+1:
@leaanthony found that enabling hash based routing fixes the problem, so I've submitted a pull request to update the template.
I now have another issue where an image asset isn't loading, but that's unrelated and probably something I'm doing wrong.
Description
I just built a new Wails app using the Angular template. When running in dev mode using wails serve and npx ng serve it works great. But if I build it using wails build or wails build -p it is just a black window. There is nothing in standard output and I can't find any useful troubleshooting info in the console.
Screenshots
System Details
Additional context In development the app works fine in both Safari and Chrome. If there is a way for me to see any logs from the built app, that would be great to know and be documented.