-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Navigation between pages not working in Tauri-generated apps for PC and MAC #1527
Comments
same affecting my app (ViteJS, VueJS, vue-router, vite-ssg) |
Are you using "history" or "hash" mode? |
I think hash, as it seems to be the default. If it helps I'm using https://github.com/antfu/vite-ssg, https://github.com/hannoeru/vite-plugin-pages and https://github.com/JohnCampionJr/vite-plugin-vue-layouts to manage the routes. |
Ok, the default was History, hash mode doesn't have this problem |
FYI we are tracking this at wry: |
Part of the bug should be resolved in WRY, now I need to check what's going on with I'll invest and keep the thread updated. |
Fixed in tauri-apps/wry#173 If you still have this problem with the next release, please open a new issue. Thanks again for reporting! |
Hi everyone, i checked it out. |
He everyone!
Issue: navigation between pages not working in Tauri-generated apps for PC and MAC.
I am building an app using create-r3f-app and next.js with tailwind css. App does not have any 3D components yet. App has multiple pages and uses AWS backend services (like Cognito User Pool, DynamoDB, S3 etc).
When I run Tauri in dev environment - app works fine - I'm able to log in using AWS Cognito (all pages are protected by Aunthenticator), can jump between pages of the app, all contents are displayed properly.
On PC:
Whenever I generate Tauri bundle (yarn tauri build) - I'm able to log in using AWS Cognito, index.js page is displayed properly but navigation between pages doesn't work and i'm getting the following error:
If I right-click on "not found file/page" and hit ''Back'', I go back to index.js page.
On MAC:
Everything works fine in the dev environment but when i try to run tauri-generated app (yarn tauri build) - navigation between pages doesn't work and there are no errors in the console. When debugging with 'cargo run tauri --verbose' - i'm getting the following error when trying to jump to another page:
Expected behavior:
Be able to jump between pages within Tauri app. Each .js page should display it's content
OS: Windows_NT(10.0.19042) - win32/x64
Node: 14.16.1
NPM: 7.10.0
Yarn: 1.22.10
Rustc: 1.51.0 (2fd73fabe 2021-03-23)
OS: Mac Chip Apple M1
Node: 14.16.1
NPM: 7.10.0
Yarn: 1.22.10
Rustc: 1.51.0 (2fd73fabe 2021-03-23)
The text was updated successfully, but these errors were encountered: