Skip to content

Comms broken since beta.3 #2342

@DBTaylor

Description

@DBTaylor

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.

Operating System - Windows, version 10.0.17763 X64
Webview2 - 92.0.902.62

Node.js environment
  Node.js - 14.8.0
  @tauri-apps/cli - 1.0.0-beta.6
  @tauri-apps/api - 1.0.0-beta.5

Global packages
  npm - 6.14.7
  yarn - Not installed

Rust environment
  rustc - 1.54.0
  cargo - 1.54.0

App directory structure
/.git
/.vscode
/node_modules
/src
/src-tauri

App
  tauri.rs - 1.0.0-beta.5
  build-type - bundle
  CSP - unset
  distDir - ./dist
  devPath - http://localhost:8081/
  framework - React
  bundler - Webpack

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions