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

Cannot Sign in when using packaged bundle #2

Closed
sxzz opened this issue Dec 12, 2022 · 11 comments
Closed

Cannot Sign in when using packaged bundle #2

sxzz opened this issue Dec 12, 2022 · 11 comments

Comments

@sxzz
Copy link
Member

sxzz commented Dec 12, 2022

image

@sxzz sxzz changed the title Cannot Sign in using built bundle Cannot Sign in when using packaged bundle Dec 12, 2022
@JonasKruckenberg
Copy link
Collaborator

I have an idea why this might not work, but can you try tauri build --debug and then check the errors in the browser console?

@alexzhang1030
Copy link
Member

might because tauri cannot hosting a fullstack project

@sxzz
Copy link
Member Author

sxzz commented Dec 27, 2022

Yeah, it's because we have to start the nodejs for running Elk, but Tauri doesn't include Node.js 🤔

@pro-sumer
Copy link
Contributor

pro-sumer commented Jan 9, 2023

Apparently #9 is a duplicate. This is the error I got:

Error
Sign in
Something went wrong
Page Not Found: /mas.to/public/%3C!DOCTYPE%20html%3E%3Chtml%20%3E%3Chead%3E%3Cmeta%20charset=%22utf-8%22%3E%3Cmeta%20name=%22viewport%22%20content=%22width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,viewport-fit=cover%22%3E%3Cmeta%20name=%22apple-mobile-web-app-status-bar-style%22%20content=%22black-translucent%22%3E%3Clink%20rel=%22icon%22%20href=%22/favicon.ico%22%20sizes=%22any%22%3E%3Clink%20rel=%22icon%22%20type=%22image/svg+xml%22%20href=%22/logo.svg%22%3E%3Clink%20rel=%22apple-touch-icon%22%20href=%22/apple-touch-icon.png%22%3E%3Clink%20rel=%22modulepreload%22%20as=%22script%22%20crossorigin%20href=%22/_nuxt/@vite/client%22%3E%3Clink%20rel=%22modulepreload%22%20as=%22script%22%20crossorigin%20href=%22/_nuxt/Users/rob/Downloads/elk-native/elk/node_modules/.pnpm/nuxt@3.0.0_lzzuuodtsqwxnvqeq4g4likcqa/node_modules/nuxt/dist/app/entry.mjs%22%3E%3Cscript%3E%22use%20strict%22;const%20w=window,de=document.documentElement,knownColorSchemes=[%22dark%22,%22light%22],preference=window.localStorage.getItem(%22nuxt-color-mode%22)||%22system%22;let%20value=preference===%22system%22?getColorScheme():preference;const%20forcedColorMode=de.getAttribute(%22data-color-mode-forced%22);forcedColorMode&&(value=forcedColorMode),addColorScheme(value),w[%22__NUXT_COLOR_MODE__%22]={preference,value,getColorScheme,addColorScheme,removeColorScheme};function%20addColorScheme(e){const%20o=%22%22+e+%22%22,t=%22%22;de.classList?de.classList.add(o):de.className+=%22%20%22+o,t&&de.setAttribute(%22data-%22+t,e)}function%20removeColorScheme(e){const%20o=%22%22+e+%22%22,t=%22%22;de.classList?de.classList.remove(o):de.className=de.className.replace(new%20RegExp(o,%22g%22),%22%22),t&&de.removeAttribute(%22data-%22+t)}function%20prefersColorScheme(e){return%20w.matchMedia(%22(prefers-color-scheme%22+e+%22)%22)}function%20getColorScheme(){if(w.matchMedia&&prefersColorScheme(%22%22).media!==%22not%20all%22){for(const%20e%20of%20knownColorSchemes)if(prefersColorScheme(%22:%22+e).matches)return%20e}return%22light%22}%3C/script%3E%3C/head%3E%3Cbody%20class=%22overflow-x-hidden%22%3E%3Cdiv%20id=%22__nuxt%22%3E%3C/div%3E%3Cscript%3Ewindow.__NUXT__=(function(a,b,c){return%20{serverRendered:a,config:{public:{env:b,buildInfo:{version:%220.2.0%22,time:1673279623738,commit:%222de0974d6b3c737a2dbad0c6ce95e2eb3d668d47%22,branch:%22main%22,env:b},pwaEnabled:a,translateApi:c,defaultServer:%22mas.to%22},app:{baseURL:%22\u002F%22,buildAssetsDir:%22\u002F_nuxt\u002F%22,cdnURL:c}},data:{},state:{}}}(false,%22dev%22,%22%22))%3C/script%3E%3Cscript%20type=%22module%22%20src=%22/_nuxt/@vite/client%22%20crossorigin%3E%3C/script%3E%3Cscript%20type=%22module%22%20src=%22/_nuxt/Users/rob/Downloads/elk-native/elk/node_modules/.pnpm/nuxt@3.0.0_lzzuuodtsqwxnvqeq4g4likcqa/node_modules/nuxt/dist/app/entry.mjs%22%20crossorigin%3E%3C/script%3E%3C/body%3E%3C/html%3E
Reload

@JonasKruckenberg
Copy link
Collaborator

JonasKruckenberg commented Jan 9, 2023

@danielroe and me will figure this out on Wednesday, if anyone wants to join I guess we can make that possible too
Edit: Actually nvm, we will do this today hahaha, apparently I can't read my own calendar

@pro-sumer
Copy link
Contributor

It's Thursday (in my timezone); did you figure it out?

(I don't see any commits or PR from yesterday - not trying to push; just curious)

@JonasKruckenberg
Copy link
Collaborator

This should be fixed now @danielroe did some fantastic fixes and even got signing in CI to work (check out the GH releases tab for a sneaky prerelease 😉)

@sxzz
Copy link
Member Author

sxzz commented Jan 13, 2023

Maybe we could improve the filename of release files. Adding OS name like darwin or macos / linux
image

@funkycode
Copy link

Now it allows to login but once I approve permissions for app I get blank screen with following:
image

@danielroe
Copy link
Member

IIRC the scheme in this case is tauri:

@JonasKruckenberg
Copy link
Collaborator

Now it allows to login but once I approve permissions for app I get blank screen with following:

image

can you open a new issue for this and also provide the output of tauri info there?

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

6 participants