-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
Description
Describe the bug
import { clipboard } from "@tauri-apps/api"; throws an error
Module '"@tauri-apps/api"' has no exported member 'clipboard
Upon investigating, it seems like the bundle does not export the clipboard
https://github.com/tauri-apps/tauri/blob/dev/tooling/api/src/bundle.ts
To Reproduce
import { clipboard } from "@tauri-apps/api";
Expected behavior
I expected to be able to import the clipboard
Platform and Versions (required):
Operating System - Windows, version 10.0.19043 X64
Webview2 - 91.0.864.70
Node.js environment
Node.js - 16.5.0
@tauri-apps/cli - 1.0.0-beta.6
@tauri-apps/api - 1.0.0-beta.5
Global packages
npm - 7.11.2
yarn - Not installed
Rust environment
rustc - 1.53.0
cargo - 1.53.0
App directory structure
/.git
/.github
/dist
/node_modules
/public
/src
/src-tauri
App
tauri.rs - 1.0.0-beta.5
build-type - bundle
CSP - default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
distDir - ../dist
devPath - http://localhost:8080/
framework - Vue.js
Reactions are currently unavailable