-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Comms broken since beta.3 #2342
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
Comments
try
|
just tried this, but I still have the issue |
can you provide a minimal repro ? |
Minimalish: |
Internally |
The comms are working fine. I didn't see any errors related to #[tauri::command]
fn test(window: Window) -> String {
println!("test");
"test".into()
} Note: the repo had a typescript errors due to |
@amrbashir, did the comms work fine for you in the release build? The "Ok: undefined" is expected, but only shows up for me in dev. In release I get the error. I also saw the typescript error and fixed it locally. I didn't have an issue building after fixing it. |
What do you mean by "by doing this manually"? I'm attempting to use the invoke function, and getting this exception in the release build. Is there some other mechanism to send commands? |
@lucasfernog - am I mistaken, or is the |
The injection is handled by the tauri protocol. I'll check this repo today. |
@nothingismagick I think whatever sets TAURI_INVOKE_KEY is failing in my release build for some reason. The invoke function is attempting to use it, but it doesn't exist. |
I can confirm it happens on release. |
I'll take care of this. Might be some detection issue on the custom protocol resolver. |
Found the issue. Our resolver ignores |
Using tauri 1.0.0-beta.3 (or beta.4 or beta.5), invoke is throwing an error, and events triggered in the backend are not being emitted in the frontend. I've had to revert to beta.1 to get everything to work (couldn't seem to get beta.2 to build).
The issue doesn't occur when I run
tauri dev
, only in the release build.window.emit is returning Ok(). invoke returns
ReferenceError: __TAURI_INVOKE_KEY__ is not defined
.The text was updated successfully, but these errors were encountered: