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

failed to resolve: use of undeclared crate or module raw_window_handle #2460

Closed
elvinaspredkelis opened this issue Aug 17, 2021 · 0 comments
Closed
Assignees

Comments

@elvinaspredkelis
Copy link
Contributor

Describe the bug

After updating to the latest release, it became impossible to compile due to the following errors:

error[E0433]: failed to resolve: use of undeclared crate or module `raw_window_handle`
  --> /Users/elvinas/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-1.0.0-beta.6/src/api/dialog.rs:46:13
   |
46 | unsafe impl raw_window_handle::HasRawWindowHandle for WindowParent {
   |             ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `raw_window_handle`

error[E0433]: failed to resolve: use of undeclared crate or module `raw_window_handle`
  --> /Users/elvinas/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-1.0.0-beta.6/src/api/dialog.rs:55:34
   |
55 |   fn raw_window_handle(&self) -> raw_window_handle::RawWindowHandle {
   |                                  ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `raw_window_handle`

error[E0433]: failed to resolve: use of undeclared crate or module `raw_window_handle`
  --> /Users/elvinas/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-1.0.0-beta.6/src/api/dialog.rs:56:22
   |
56 |     let mut handle = raw_window_handle::macos::MacOSHandle::empty();
   |                      ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `raw_window_handle`

error[E0433]: failed to resolve: use of undeclared crate or module `raw_window_handle`
  --> /Users/elvinas/.cargo/registry/src/github.com-1ecc6299db9ec823/tauri-1.0.0-beta.6/src/api/dialog.rs:58:5
   |
58 |     raw_window_handle::RawWindowHandle::MacOS(handle)
   |     ^^^^^^^^^^^^^^^^^ use of undeclared crate or module `raw_window_handle`

error: aborting due to 4 previous errors

To Reproduce

Update to the latest release on macOS.

Platform and Versions (required):

Operating System - Mac OS, version 11.2.3 X64

Node.js environment
  Node.js - 16.6.2
  @tauri-apps/cli - 1.0.0-beta.7
  @tauri-apps/api - 1.0.0-beta.6

Global packages
  npm - 7.20.3
  yarn - 1.22.11

Rust environment
  rustc - 1.54.0
  cargo - 1.54.0

App directory structure
/node_modules
/public
/src-tauri
/lib
/.git
/src

App
  tauri.rs - 1.0.0-beta.6
  build-type - bundle
  CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  distDir - Set automatically by Vue CLI plugin
  devPath - Set automatically by Vue CLI plugin
  framework - Vue.js (Vue CLI)
  bundler - Webpack

Additional context

In the package.json, tauri cli seems to be "@tauri-apps/cli": "1.0.0-beta.8", as opposed to the version displayed in tauri info.

Stack Trace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants